[PATCH] D74574: [LoopRotate] Get and update MSSA only if available in legacy pass manager.

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 11:47:06 PST 2020


asbirlea created this revision.
asbirlea added reviewers: dmgreen, fedor.sergeev, nikic.
Herald added subscribers: george.burgess.iv, hiraditya, Prazek.
Herald added a project: LLVM.

Potential fix for: https://bugs.llvm.org/show_bug.cgi?id=44889 and https://bugs.llvm.org/show_bug.cgi?id=44408

In the legacy pass manager, loop rotate need not compute MemorySSA when not being in the same loop pass manager with other loop passes.
There isn't currently a way to differentiate between the two cases, so this attempts to limit the usage in LoopRotate to only update MemorySSA when the analysis is already available.
The side-effect of this is that it will split the Loop pipeline.

This issue does not apply to the new pass manager, where we have a flag specifying if all loop passes in that loop pass manager preserve MemorySSA.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74574

Files:
  llvm/lib/Transforms/Scalar/LoopRotation.cpp
  llvm/test/Other/opt-O2-pipeline.ll
  llvm/test/Other/opt-O3-pipeline.ll
  llvm/test/Other/opt-Os-pipeline.ll
  llvm/test/Other/pass-pipelines.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74574.244493.patch
Type: text/x-patch
Size: 7175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/69610fe7/attachment.bin>


More information about the llvm-commits mailing list