mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
Fix PR325
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ad2b1d544
commit
c99acc3709
@ -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