[llvm-commits] CVS: llvm/lib/Transforms/Scalar/TailDuplication.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jun 22 15:47:01 PDT 2003
Changes in directory llvm/lib/Transforms/Scalar:
TailDuplication.cpp updated: 1.2 -> 1.3
---
Log message:
Add paranoia checking
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/TailDuplication.cpp
diff -u llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.2 llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.3
--- llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.2 Sun Jun 22 15:25:27 2003
+++ llvm/lib/Transforms/Scalar/TailDuplication.cpp Sun Jun 22 15:46:00 2003
@@ -303,7 +303,7 @@
}
// Found a value to replace the PHI node with?
- if (ReplVal) {
+ if (ReplVal && ReplVal != PN) {
PN->replaceAllUsesWith(ReplVal);
BBVal = ReplVal;
if (BBOutVal == PN) BBOutVal = ReplVal;
More information about the llvm-commits
mailing list