llvm-project
a0a2a1e0 - [LoopPeel] Make sure exit condition has a single use when peeling last.

Commit
213 days ago
[LoopPeel] Make sure exit condition has a single use when peeling last. Update the check in canPeelLastIteration to make sure the exiting condition has a single use. When peeling the last iteration, we adjust the condition in the loop body to be true one iteration early, which would be incorrect for other users. Fixes https://github.com/llvm/llvm-project/issues/140444.
Author
Committer
Parents
Loading