mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
Optimization suggested by Matthijs Kooijman.
llvm-svn: 55988
This commit is contained in:
parent
d8ab4c3485
commit
85c4a89959
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user