diff options
author | Eric Christopher <echristo@apple.com> | 2011-02-05 02:48:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-02-05 02:48:47 +0000 |
commit | ceb4671ddde9a670dfc43b900937223a3386a493 (patch) | |
tree | 2c3fbc7b71bb11688e1c0fe8e1c2913443072fcf /llvm/lib/Analysis/InlineCost.cpp | |
parent | 8a9ef34039b170de42b59e142d7ccc7b7637e353 (diff) | |
download | bcm5719-llvm-ceb4671ddde9a670dfc43b900937223a3386a493.tar.gz bcm5719-llvm-ceb4671ddde9a670dfc43b900937223a3386a493.zip |
Fix cut and paste error spotted by Jakob.
llvm-svn: 124930
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 98a158ab269..58f38afc6e9 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -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. |