This is an archive of the discontinued LLVM Phabricator instance.

[LoopSimplifyCFG] Preserve Scalar Evolution in LoopSimplifyCFG
ClosedPublic

Authored by dmgreen on Jun 16 2018, 3:06 PM.

Details

Summary

LoopSimplifyCFG, being a loop pass, needs to preserve scalar
evolution. This invalidates SE for the loops altered during
block merging.

Needs https://reviews.llvm.org/D48202 for the test to cause
a validation failure.

Diff Detail

Repository
rL LLVM

Event Timeline

dmgreen created this revision.Jun 16 2018, 3:06 PM
asbirlea accepted this revision.Jun 18 2018, 3:02 PM

Perhaps a more accurate description is "Invalidate ScEv in LoopSimplifyCFG" (when merging blocks).
LGTM.

This revision is now accepted and ready to land.Jun 18 2018, 3:02 PM
This revision was automatically updated to reflect the committed changes.