diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-22 17:21:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-22 17:21:44 +0000 |
commit | 79e87e39eb498803fc05c9540f7b69ffade412bf (patch) | |
tree | e6f39ea2c415943af3c9c83b8004018f7fe91a98 /llvm/lib/Transforms | |
parent | 6d048a0d32e8c527b46312a6da8cbc9496025984 (diff) | |
download | bcm5719-llvm-79e87e39eb498803fc05c9540f7b69ffade412bf.tar.gz bcm5719-llvm-79e87e39eb498803fc05c9540f7b69ffade412bf.zip |
Ignore debugger intrinsics when doing inlining size computations.
llvm-svn: 18109
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/InlineSimple.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<DbgInfoIntrinsic>(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. |