Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Nice cleanup, thanks - addClonedBlockToLoopInfo() will indeed add the top-level itself, I didn't notice this when I wrote the patch.
But I think you still need to know whether you actually created a remainder loop, see inline comment.
lib/Transforms/Utils/LoopUnrollRuntime.cpp | ||
---|---|---|
389–391 | Are you sure you want to do this if NewLoops[L] is the parent loop? I think this code is meant to only disable unrolling on the remainder loop. |
Comment Actions
Fixed check
lib/Transforms/Utils/LoopUnrollRuntime.cpp | ||
---|---|---|
389–391 | Ah good spot. We should check CreateRemainderLoop I think. |
Are you sure you want to do this if NewLoops[L] is the parent loop? I think this code is meant to only disable unrolling on the remainder loop.