[llvm-commits] [llvm] r124930 - /llvm/trunk/lib/Analysis/InlineCost.cpp
Eric Christopher
echristo at apple.com
Fri Feb 4 18:48:48 PST 2011
Author: echristo
Date: Fri Feb 4 20:48:47 2011
New Revision: 124930
URL: http://llvm.org/viewvc/llvm-project?rev=124930&view=rev
Log:
Fix cut and paste error spotted by Jakob.
Modified:
llvm/trunk/lib/Analysis/InlineCost.cpp
Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=124930&r1=124929&r2=124930&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Fri Feb 4 20:48:47 2011
@@ -330,7 +330,7 @@
} 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.
More information about the llvm-commits
mailing list