mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Fix PR325
llvm-svn: 13081
This commit is contained in:
parent
5a1e3f099f
commit
602146eea1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user