]> granicus.if.org Git - llvm/commit
[MemorySSA] Loop passes should mark MSSA preserved when available.
authorAlina Sbirlea <asbirlea@google.com>
Sat, 17 Aug 2019 01:02:12 +0000 (01:02 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Sat, 17 Aug 2019 01:02:12 +0000 (01:02 +0000)
commit35081ff9e6a05a72480b295cc800fbade873d316
tree09bc8d36bd87d77ef1c441f2ca65af905dd3ca20
parentd91d043465fd5334c1cdb5d4d2701b49fffd7a00
[MemorySSA] Loop passes should mark MSSA preserved when available.

This patch applies only to the new pass manager.
Currently, when MSSA Analysis is available, and pass to each loop pass, it will be preserved by that loop pass.
Hence, mark the analysis preserved based on that condition, vs the current `EnableMSSALoopDependency`. This leaves the global flag to affect only the entry point in the loop pass manager (in FunctionToLoopPassAdaptor).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369181 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Scalar/LoopInstSimplify.cpp
lib/Transforms/Scalar/LoopRotation.cpp
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp