forked from OSchip/llvm-project
[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:
parent
f9d585d0dd
commit
54e21df973
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue