diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-02-21 21:13:34 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-02-21 21:13:34 +0000 |
commit | 97468e9282b25639de0181c94eba6972519f4e84 (patch) | |
tree | 14ab72969730f23fa40af65e84924277f156e496 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 475042d5b1be6187094699a76ce03ce70b147a47 (diff) | |
download | bcm5719-llvm-97468e9282b25639de0181c94eba6972519f4e84.tar.gz bcm5719-llvm-97468e9282b25639de0181c94eba6972519f4e84.zip |
[MemorySSA & LoopPassManager] Update MemorySSA in formDedicatedExitBlocks.
MemorySSA is now updated when forming dedicated exit blocks.
Resolves PR40037.
llvm-svn: 354623
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index a9d41945b27..2f1a759870c 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -938,11 +938,11 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count, if (OtherExits.size() > 0) { // Generate dedicated exit blocks for the original loop, to preserve // LoopSimplifyForm. - formDedicatedExitBlocks(L, DT, LI, PreserveLCSSA); + formDedicatedExitBlocks(L, DT, LI, nullptr, PreserveLCSSA); // Generate dedicated exit blocks for the remainder loop if one exists, to // preserve LoopSimplifyForm. if (remainderLoop) - formDedicatedExitBlocks(remainderLoop, DT, LI, PreserveLCSSA); + formDedicatedExitBlocks(remainderLoop, DT, LI, nullptr, PreserveLCSSA); } auto UnrollResult = LoopUnrollResult::Unmodified; |