mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Optimization suggested by Matthijs Kooijman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
99c1a7c9e1
commit
24a052124b
@ -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…
x
Reference in New Issue
Block a user