[llvm-commits] CVS: llvm/lib/Transforms/IPO/InlineSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 22 09:21:56 PST 2004
Changes in directory llvm/lib/Transforms/IPO:
InlineSimple.cpp updated: 1.67 -> 1.68
---
Log message:
Ignore debugger intrinsics when doing inlining size computations.
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Transforms/IPO/InlineSimple.cpp
diff -u llvm/lib/Transforms/IPO/InlineSimple.cpp:1.67 llvm/lib/Transforms/IPO/InlineSimple.cpp:1.68
--- llvm/lib/Transforms/IPO/InlineSimple.cpp:1.67 Tue Nov 9 02:05:23 2004
+++ llvm/lib/Transforms/IPO/InlineSimple.cpp Mon Nov 22 11:21:44 2004
@@ -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 @@
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.
More information about the llvm-commits
mailing list