aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-25 17:42:07 +0000
committerOwen Anderson <resistor@mac.com>2009-08-25 17:42:07 +0000
commit36ed6c0368d77188063d1594e54c52df1438ae87 (patch)
tree92289caff6a94a89b112058ead76dc829ffe3997 /lib/Transforms/Utils/CodeExtractor.cpp
parent845a722eb435c2a9c0528b13a472e595340b6dd8 (diff)
downloadexternal_llvm-36ed6c0368d77188063d1594e54c52df1438ae87.zip
external_llvm-36ed6c0368d77188063d1594e54c52df1438ae87.tar.gz
external_llvm-36ed6c0368d77188063d1594e54c52df1438ae87.tar.bz2
Comment-ify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r--lib/Transforms/Utils/CodeExtractor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp
index db523da..c39ccf7 100644
--- a/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/lib/Transforms/Utils/CodeExtractor.cpp
@@ -361,6 +361,9 @@ Function *CodeExtractor::constructFunction(const Values &inputs,
return newFunction;
}
+/// FindPhiPredForUseInBlock - Given a value and a basic block, find a PHI
+/// that uses the value within the basic block, and return the predecessor
+/// block associated with that use, or return 0 if none is found.
static BasicBlock* FindPhiPredForUseInBlock(Value* Used, BasicBlock* BB) {
for (Value::use_iterator UI = Used->use_begin(),
UE = Used->use_end(); UI != UE; ++UI) {