1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/Transforms/LoopRotate
Alina Sbirlea 1542bebc55 [LoopPassManager + MemorySSA] Only enable use of MemorySSA for LPMs known to preserve it.
Summary:
Add a flag to the FunctionToLoopAdaptor that allows enabling MemorySSA only for the loop pass managers that are known to preserve it.

If an LPM is known to have only loop transforms that *all* preserve MemorySSA, then use MemorySSA if `EnableMSSALoopDependency` is set.
If an LPM has loop passes that do not preserve MemorySSA, then the flag passed is `false`, regardless of the value of `EnableMSSALoopDependency`.

When using a custom loop pass pipeline via `passes=...`, use keyword `loop` vs `loop-mssa` to use MemorySSA in that LPM. If a loop that does not preserve MemorySSA is added while using the `loop-mssa` keyword, that's an error.

Add the new `loop-mssa` keyword to a few tests where a difference occurs when enabling MemorySSA.

Reviewers: chandlerc

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

Tags: #llvm

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

llvm-svn: 369548
2019-08-21 17:00:57 +00:00
..
2009-01-25-SingleEntryPhi.ll
alloca.ll
basic.ll
callbr.ll
catchret.ll
convergent.ll
crash.ll
dbg-value-duplicates.ll
dbgvalue.ll
indirectbr.ll
loopexitinglatch.ll
multiple-exits.ll
nosimplifylatch.ll
oz-disable.ll
phi-dbgvalue.ll
phi-duplicate.ll
PhiRename-1.ll
PhiSelfReference-1.ll
pr2639.ll
pr22337.ll
pr33701.ll
pr35210.ll
pr37205.ll
preserve-loop-simplify.ll
preserve-mssa.ll
preserve-scev.ll
simplifylatch.ll
vect.omp.persistence.ll