Fixes https://github.com/llvm/llvm-project/issues/58454
Scalar evolution dispositions need to be forgotten to pass verification.
We do not need to forget the subloop since it is automatically forgotten
when forgetting the parent loop.
Paths
| Differential D140953
[LoopUnrollAndJam] Forget scalar evolution dispositions. Do no explicitly forget subloop. ClosedPublic Authored by caojoshua on Jan 3 2023, 11:02 PM.
Details Summary Fixes https://github.com/llvm/llvm-project/issues/58454 Scalar evolution dispositions need to be forgotten to pass verification. We do not need to forget the subloop since it is automatically forgotten
Diff Detail
Event TimelineComment Actions LGTM, thanks!
This revision is now accepted and ready to land.Jan 4 2023, 7:02 AM Comment Actions Added suggested note that print<scalar-evolution> is needed to populate scev caches. I don't have commit access right now. I sent a request today, but can I get help merging this for now? Closed by commit rG50be2859443a: [LoopUnrollAndJam] Forget scalar evolution dispositions. Do no explicitly… (authored by caojoshua). · Explain WhyJan 4 2023, 7:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 486455 llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
llvm/test/Transforms/LoopUnrollAndJam/se-forget.ll
|
IIUC print<scalar-evolution> is only needed to populate the SCEV caches. Might be good to ad d a note.