summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-02-05 02:48:47 +0000
committerEric Christopher <echristo@apple.com>2011-02-05 02:48:47 +0000
commitceb4671ddde9a670dfc43b900937223a3386a493 (patch)
tree2c3fbc7b71bb11688e1c0fe8e1c2913443072fcf /llvm/lib/Analysis/InlineCost.cpp
parent8a9ef34039b170de42b59e142d7ccc7b7637e353 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud