From ceb4671ddde9a670dfc43b900937223a3386a493 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 5 Feb 2011 02:48:47 +0000 Subject: Fix cut and paste error spotted by Jakob. llvm-svn: 124930 --- llvm/lib/Analysis/InlineCost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/InlineCost.cpp') 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(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. -- cgit v1.2.3