[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopSimplify.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 6 13:35:54 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
LoopSimplify.cpp updated: 1.53 -> 1.54
---
Log message:
trivial simplification
---
Diffs of the changes: (+1 -1)
LoopSimplify.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.53 llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.54
--- llvm/lib/Transforms/Scalar/LoopSimplify.cpp:1.53 Fri Jan 28 18:39:08 2005
+++ llvm/lib/Transforms/Scalar/LoopSimplify.cpp Sun Mar 6 15:35:38 2005
@@ -437,7 +437,7 @@
if (!isa<Instruction>(V) || DS.dominates(cast<Instruction>(V), PN)) {
// This is a degenerate PHI already, don't modify it!
PN->replaceAllUsesWith(V);
- PN->getParent()->getInstList().erase(PN);
+ PN->eraseFromParent();
continue;
}
More information about the llvm-commits
mailing list