mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Fix cut and paste error spotted by Jakob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fe3f99f95c
commit
a818d031d5
@ -330,7 +330,7 @@ int InlineCostAnalyzer::CountBonusForConstant(Value *V, Constant *C) {
|
||||
} else if (InvokeInst *II = dyn_cast<InvokeInst>(U)) {
|
||||
// Turning an indirect call into a direct call is a BIG win
|
||||
if (II->getCalledValue() == V)
|
||||
Bonus += ConstantFunctionBonus(CallSite(CI), C);
|
||||
Bonus += ConstantFunctionBonus(CallSite(II), C);
|
||||
}
|
||||
// FIXME: Eliminating conditional branches and switches should
|
||||
// also yield a per-call performance boost.
|
||||
|
Loading…
Reference in New Issue
Block a user