[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Jim Laskey jlaskey at apple.com
Thu Mar 23 10:10:53 PST 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.451 -> 1.452
---
Log message:

Can't combine anymore - we don't have a chain through llvm.dbg intrinsics.



---
Diffs of the changes:  (+0 -10)

 InstructionCombining.cpp |   10 ----------
 1 files changed, 10 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.451 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.452
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.451	Mon Mar  6 19:28:57 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Thu Mar 23 12:10:42 2006
@@ -5391,16 +5391,6 @@
     }
           
     if (Changed) return II;
-  } else if (DbgStopPointInst *SPI = dyn_cast<DbgStopPointInst>(II)) {
-    // If this stoppoint is at the same source location as the previous
-    // stoppoint in the chain, it is not needed.
-    if (DbgStopPointInst *PrevSPI =
-        dyn_cast<DbgStopPointInst>(SPI->getChain()))
-      if (SPI->getLineNo() == PrevSPI->getLineNo() &&
-          SPI->getColNo() == PrevSPI->getColNo()) {
-        SPI->replaceAllUsesWith(PrevSPI);
-        return EraseInstFromFunction(CI);
-      }
   } else {
     switch (II->getIntrinsicID()) {
     default: break;






More information about the llvm-commits mailing list