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 | 8db93f18cc0ff019c04066478b92ed9aeec9b235 (patch) | |
tree | b3637da48eb1827fa3e6bbcfff60790aed423073 /lib | |
parent | 64613ea8c8fa4bbccdfb2666bcdb27ba635fd5a2 (diff) | |
download | external_llvm-8db93f18cc0ff019c04066478b92ed9aeec9b235.zip external_llvm-8db93f18cc0ff019c04066478b92ed9aeec9b235.tar.gz external_llvm-8db93f18cc0ff019c04066478b92ed9aeec9b235.tar.bz2 |
Ignore debugger intrinsics when doing inlining size computations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 6a43143..5916f10 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/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. |