projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
99c1a7c
)
Optimization suggested by Matthijs Kooijman.
author
Duncan Sands
<baldrick@free.fr>
Tue, 9 Sep 2008 13:44:24 +0000
(13:44 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Tue, 9 Sep 2008 13:44:24 +0000
(13:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55988
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraph.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraph.cpp
b/lib/Analysis/IPA/CallGraph.cpp
index d24373c9b55fda10153cc602157f4a05c596e7e0..1a65179c5aac56972a9a8cb0a42939d9a0c93f95 100644
(file)
--- a/
lib/Analysis/IPA/CallGraph.cpp
+++ b/
lib/Analysis/IPA/CallGraph.cpp
@@
-135,7
+135,8
@@
private:
I != E && !isUsedExternally; ++I) {
if (Instruction *Inst = dyn_cast<Instruction>(*I)) {
CallSite CS = CallSite::get(Inst);
- isUsedExternally = !CS.getInstruction() || CS.hasArgument(F);
+ // Not a call? Or F being passed as a parameter not as the callee?
+ isUsedExternally = !CS.getInstruction() || I.getOperandNo();
} else { // User is not a direct call!
isUsedExternally = true;
}