This is an archive of the discontinued LLVM Phabricator instance.

Update MemorySSA in LoopSimplifyCFG.
ClosedPublic

Authored by asbirlea on Aug 17 2018, 10:35 AM.

Details

Summary

Add MemorySSA as a dependency to LoopSimplifyCFG and preserve it.
Disabled by default until all passes preserve MemorySSA.

Diff Detail

Event Timeline

asbirlea created this revision.Aug 17 2018, 10:35 AM
chandlerc added inline comments.Aug 20 2018, 1:44 PM
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
77

Same comment as on other patch -- could we use an Optional here to avoid heap allocation?

asbirlea updated this revision to Diff 161583.Aug 20 2018, 3:18 PM

Address comment.

asbirlea updated this revision to Diff 161605.Aug 20 2018, 4:06 PM

Updated to allocate mssaupdater.

asbirlea updated this revision to Diff 161630.Aug 20 2018, 6:57 PM

Update to simple constructor.

This revision is now accepted and ready to land.Aug 20 2018, 7:54 PM
This revision was automatically updated to reflect the committed changes.

Thank you for the review!