From 79e87e39eb498803fc05c9540f7b69ffade412bf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Nov 2004 17:21:44 +0000 Subject: Ignore debugger intrinsics when doing inlining size computations. llvm-svn: 18109 --- llvm/lib/Transforms/IPO/InlineSimple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp index 6a43143d87b..5916f10402f 100644 --- a/llvm/lib/Transforms/IPO/InlineSimple.cpp +++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp @@ -13,6 +13,7 @@ #include "Inliner.h" #include "llvm/Instructions.h" +#include "llvm/IntrinsicInst.h" #include "llvm/Function.h" #include "llvm/Type.h" #include "llvm/Support/CallSite.h" @@ -147,7 +148,7 @@ void FunctionInfo::analyzeFunction(Function *F) { for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB) { for (BasicBlock::const_iterator II = BB->begin(), E = BB->end(); II != E; ++II) { - ++NumInsts; + if (!isa(II)) ++NumInsts; // If there is an alloca in the body of the function, we cannot currently // inline the function without the risk of exploding the stack. -- cgit v1.2.3