Ignore debugger intrinsics when doing inlining size computations.

llvm-svn: 18109
This commit is contained in:
Chris Lattner 2004-11-22 17:21:44 +00:00
parent 6d048a0d32
commit 79e87e39eb
1 changed files with 2 additions and 1 deletions

View File

@ -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.