From 00d67db384961e69993537135e488ed6efc29903 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 7 Oct 2009 00:54:08 +0000 Subject: [PATCH] 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 --- lib/Transforms/Utils/InlineCost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {