[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 20 15:26:02 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
LoopUnroll.cpp updated: 1.8 -> 1.9
---
Log message:
Fix PR325: http://llvm.cs.uiuc.edu/PR325
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.8 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.9
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.8 Sun Apr 18 22:01:23 2004
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp Tue Apr 20 15:26:03 2004
@@ -132,7 +132,7 @@
if (!TripCountC) return Changed; // Must have constant trip count!
unsigned TripCount = TripCountC->getRawValue();
- if (TripCount != TripCountC->getRawValue())
+ if (TripCount != TripCountC->getRawValue() || TripCount == 0)
return Changed; // More than 2^32 iterations???
unsigned LoopSize = ApproximateLoopSize(L);
More information about the llvm-commits
mailing list