[llvm-commits] [llvm] r66599 - /llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp

Bill Wendling isanbard at gmail.com
Tue Mar 10 16:41:31 PDT 2009


Author: void
Date: Tue Mar 10 18:41:31 2009
New Revision: 66599

URL: http://llvm.org/viewvc/llvm-project?rev=66599&view=rev
Log:
--- Merging (from foreign repository) r66588 into '.':
U    lib/Transforms/Utils/CloneFunction.cpp

Don't consider debug intrinsics when checking
whether a callee to be inlined is a leaf.

Modified:
    llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp

Modified: llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp?rev=66599&r1=66598&r2=66599&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Utils/CloneFunction.cpp Tue Mar 10 18:41:31 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