projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad2b1d
)
Fix PR325
author
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2004 20:26:03 +0000
(20:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2004 20:26:03 +0000
(20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13081
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnroll.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnroll.cpp
b/lib/Transforms/Scalar/LoopUnroll.cpp
index 74724cce60ef1d0ea4efb2b1dfd1a001b042f11c..33148200b46a77e6b5f53fb9464afe7b78f550c6 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/
lib/Transforms/Scalar/LoopUnroll.cpp
@@
-132,7
+132,7
@@
bool LoopUnroll::visitLoop(Loop *L) {
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);