[unroll] Fix a functional change in an NFC patch

5c77aa2b91 [unroll] Use early return in shouldFullUnroll [nfc]
wasn't quite NFC since !(x <= y) is x > y rather than x >= y

Credit to Justin Bogner for spotting the bug

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D114894
This commit is contained in:
Daniel Sanders 2021-12-01 16:15:53 -08:00
parent f9d585d0dd
commit 54e21df973
1 changed files with 1 additions and 1 deletions

View File

@ -808,7 +808,7 @@ static Optional<unsigned> shouldFullUnroll(
const TargetTransformInfo::UnrollingPreferences &UP) {
assert(FullUnrollTripCount && "should be non-zero!");
if (FullUnrollTripCount >= UP.FullUnrollMaxCount)
if (FullUnrollTripCount > UP.FullUnrollMaxCount)
return None;
// When computing the unrolled size, note that BEInsns are not replicated