From: Eric Christopher Date: Wed, 7 Oct 2009 00:54:08 +0000 (+0000) Subject: Add FreeInst to the "is a call" check for Insts that are calls, but X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=00d67db384961e69993537135e488ed6efc29903;p=oota-llvm.git Add FreeInst to the "is a call" check for Insts that are calls, but not intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83441 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp index b909203f234..df03b378f07 100644 --- a/lib/Transforms/Utils/InlineCost.cpp +++ b/lib/Transforms/Utils/InlineCost.cpp @@ -135,8 +135,8 @@ void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) { NumInsts += 5; } - // This, too, is a call. - if (isa(II)) + // These, too, are calls. + if (isa(II) || isa(II)) NumInsts += 5; if (const AllocaInst *AI = dyn_cast(II)) {