We use < UP.Threshold later on, so we should use LoopSize + 1, to
allow unrolling if the result won't exceed to loop size.
Fixes PR43305.
Paths
| Differential D67594
[LoopUnroll] Use LoopSize+1 as threshold, to allow unrolling loops matching LoopSize. ClosedPublic Authored by fhahn on Sep 15 2019, 11:38 AM.
Details Summary We use < UP.Threshold later on, so we should use LoopSize + 1, to Fixes PR43305.
Diff Detail
Event TimelineComment Actions So we unroll the loop if the sizes are equal too? Sounds sensible to me.
This revision is now accepted and ready to land.Sep 16 2019, 5:58 AM Closed by commit rL372084: [LoopUnroll] Use LoopSize+1 as threshold, to allow unrolling loops matching… (authored by fhahn). · Explain WhySep 17 2019, 2:01 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 220451 llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/trunk/test/Transforms/LoopUnroll/AArch64/unroll-optsize.ll
llvm/trunk/test/Transforms/LoopUnroll/optsize-loop-size.ll
|