[PATCH] D62536: Only passes that preserve MemorySSA must mark it as preserved.

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 11:04:37 PDT 2019


asbirlea created this revision.
asbirlea added a reviewer: chandlerc.
Herald added subscribers: george.burgess.iv, Prazek, jlebar, mehdi_amini.
Herald added a project: LLVM.

The method `getLoopPassPreservedAnalyses` should not mark MemorySSA as
preserved, because it's being called in a lot of passes that do not
preserve MemorySSA.
Instead, mark the MemorySSA analysis as preserved by each pass that does
preserve it.
These changes only affect the new pass mananger.


Repository:
  rL LLVM

https://reviews.llvm.org/D62536

Files:
  lib/Analysis/LoopAnalysisManager.cpp
  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
  unittests/Transforms/Scalar/LoopPassManagerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62536.201717.patch
Type: text/x-patch
Size: 4915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190528/036ea261/attachment.bin>


More information about the llvm-commits mailing list