projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a0f1e
)
Comment-ify.
author
Owen Anderson
<resistor@mac.com>
Tue, 25 Aug 2009 17:42:07 +0000
(17:42 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 25 Aug 2009 17:42:07 +0000
(17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80009
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/CodeExtractor.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/CodeExtractor.cpp
b/lib/Transforms/Utils/CodeExtractor.cpp
index db523daa4f55f2ff40191360f63ebc6273f302a2..c39ccf7d3f4571d7a4b6b5f7ca1f14003c344228 100644
(file)
--- 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) {