diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-25 17:42:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-25 17:42:07 +0000 |
commit | 4e9ac2a34bb2a0d098fcd95b5f7d0213e4cdb85c (patch) | |
tree | e0b573fe8fe7c1367d881efe5fc660a2679bcb91 /llvm/lib/Transforms/Utils/CodeExtractor.cpp | |
parent | f18cae497988c8c4a839892c45b43b936d1a5602 (diff) | |
download | bcm5719-llvm-4e9ac2a34bb2a0d098fcd95b5f7d0213e4cdb85c.tar.gz bcm5719-llvm-4e9ac2a34bb2a0d098fcd95b5f7d0213e4cdb85c.zip |
Comment-ify.
llvm-svn: 80009
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CodeExtractor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index db523daa4f5..c39ccf7d3f4 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/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) { |