[llvm-commits] [llvm] r66588 - /llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
Dale Johannesen
dalej at apple.com
Tue Mar 10 15:20:03 PDT 2009
Author: johannes
Date: Tue Mar 10 17:20:02 2009
New Revision: 66588
URL: http://llvm.org/viewvc/llvm-project?rev=66588&view=rev
Log:
Don't consider debug intrinsics when checking
whether a callee to be inlined is a leaf.
Modified:
llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp?rev=66588&r1=66587&r2=66588&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp Tue Mar 10 17:20:02 2009
@@ -47,7 +47,7 @@
NewBB->getInstList().push_back(NewInst);
ValueMap[II] = NewInst; // Add instruction map to value.
- hasCalls |= isa<CallInst>(II);
+ hasCalls |= (isa<CallInst>(II) && !isa<DbgInfoIntrinsic>(II));
if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
if (isa<ConstantInt>(AI->getArraySize()))
hasStaticAllocas = true;
@@ -249,7 +249,7 @@
NewBB->getInstList().push_back(NewInst);
ValueMap[II] = NewInst; // Add instruction map to value.
- hasCalls |= isa<CallInst>(II);
+ hasCalls |= (isa<CallInst>(II) && !isa<DbgInfoIntrinsic>(II));
if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
if (isa<ConstantInt>(AI->getArraySize()))
hasStaticAllocas = true;
More information about the llvm-commits
mailing list