diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-05-08 17:05:36 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-05-08 17:05:36 +0000 |
commit | f31eba649422082783a19bb6b373f31f10f55de9 (patch) | |
tree | b0f73d40cc275dfaacb603f9987a26247249d11a /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 9f15718b3dd405adb2477a121e1030a0e81d00fd (diff) | |
download | bcm5719-llvm-f31eba649422082783a19bb6b373f31f10f55de9.tar.gz bcm5719-llvm-f31eba649422082783a19bb6b373f31f10f55de9.zip |
[MemorySSA] Teach LoopSimplify to preserve MemorySSA.
Summary:
Preserve MemorySSA in LoopSimplify, in the old pass manager, if the analysis is available.
Do not preserve it in the new pass manager.
Update tests.
Subscribers: nemanjai, jlebar, javed.absar, Prazek, kbarton, zzheng, jsji, llvm-commits, george.burgess.iv, chandlerc
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60833
llvm-svn: 360270
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 4f043448e4e..83f1c70f4cf 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -7574,7 +7574,8 @@ bool LoopVectorizePass::runImpl( // will simplify all loops, regardless of whether anything end up being // vectorized. for (auto &L : *LI) - Changed |= simplifyLoop(L, DT, LI, SE, AC, false /* PreserveLCSSA */); + Changed |= + simplifyLoop(L, DT, LI, SE, AC, nullptr, false /* PreserveLCSSA */); // Build up a worklist of inner-loops to vectorize. This is necessary as // the act of vectorizing or partially unrolling a loop creates new loops |