[llvm-commits] [llvm] r80009 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Owen Anderson
resistor at mac.com
Tue Aug 25 10:42:07 PDT 2009
Author: resistor
Date: Tue Aug 25 12:42:07 2009
New Revision: 80009
URL: http://llvm.org/viewvc/llvm-project?rev=80009&view=rev
Log:
Comment-ify.
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=80009&r1=80008&r2=80009&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Tue Aug 25 12:42:07 2009
@@ -361,6 +361,9 @@
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) {
More information about the llvm-commits
mailing list