Set disable unroll, when loop is unrolled once even if there were no metadata.
(basically for "-unroll-count" passed case)
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Hi Evgeny,
The change looks good, but I'd like the test to be changed. We don't need to run entire O2 pipeline for it. If you're trying to catch some behavior of the second invocation of loop-unroll, please just add IR from right before that as another test.
Thanks,
Michael
test/Transforms/LoopUnroll/runtime-count.ll | ||
---|---|---|
1 ↗ | (On Diff #58877) | Please run only -loop-unroll, not entire -O2. |
Comment Actions
LGTM with a minor remark below.
Michael
test/Transforms/LoopUnroll/unroll-count.ll | ||
---|---|---|
2 | The test doesn't check that unrolling occurs only once, it only checks if the metadata is set after unrolling - this is totally fine, I just think the comment is slightly off. |
The test doesn't check that unrolling occurs only once, it only checks if the metadata is set after unrolling - this is totally fine, I just think the comment is slightly off.