This is an archive of the discontinued LLVM Phabricator instance.

[MemorySSA] Set LoopSimplify to preserve MemorySSA in the NPM, if analysis exists.
ClosedPublic

Authored by asbirlea on Jul 29 2019, 2:00 PM.

Details

Summary

LoopSimplify is preserved in the legacy pass manager, but not in the new pass manager.
Update LoopSimplify to preserve MemorySSA conditionally when the analysis is available (same behavior as the legacy pass manager).

Diff Detail

Event Timeline

asbirlea created this revision.Jul 29 2019, 2:00 PM
chandlerc added inline comments.Jul 31 2019, 4:27 PM
lib/Transforms/Utils/LoopSimplify.cpp
863

If it doesn't cause too much churn in tests, I'd prefer to make this conditional as well.

asbirlea updated this revision to Diff 212854.Aug 1 2019, 10:50 AM
asbirlea marked an inline comment as done.

Address comment.

This revision is now accepted and ready to land.Aug 1 2019, 10:56 AM
This revision was automatically updated to reflect the committed changes.