]> granicus.if.org Git - llvm/commit
[MemorySSA] Set LoopSimplify to preserve MemorySSA in the NPM, if analysis exists.
authorAlina Sbirlea <asbirlea@google.com>
Thu, 1 Aug 2019 18:28:28 +0000 (18:28 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Thu, 1 Aug 2019 18:28:28 +0000 (18:28 +0000)
commitcd08c1f5c1c682c02725b08ec3a02f2bf168b81b
treeaedd24e33090ffe24ec539db5f1501be8f701d99
parent937a1b0fd29bc5fde97510729a7b5ff378280a1a
[MemorySSA] Set LoopSimplify to preserve MemorySSA in the NPM, if analysis exists.

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).

Reviewers: chandlerc

Subscribers: mehdi_amini, jlebar, Prazek, george.burgess.iv, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65418

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
unittests/Transforms/Scalar/LoopPassManagerTest.cpp