diff options
| author | Alina Sbirlea <asbirlea@google.com> | 2019-07-12 22:30:30 +0000 |
|---|---|---|
| committer | Alina Sbirlea <asbirlea@google.com> | 2019-07-12 22:30:30 +0000 |
| commit | db101864bdc938deb1d63fe4f7da761bd38e5cae (patch) | |
| tree | e9fdaa69deccd3739d799943624291a5400c80d9 /llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | |
| parent | 9178b10163f758cbf8a5290ea6a827990427ddc0 (diff) | |
| download | bcm5719-llvm-db101864bdc938deb1d63fe4f7da761bd38e5cae.tar.gz bcm5719-llvm-db101864bdc938deb1d63fe4f7da761bd38e5cae.zip | |
[MemorySSA] Use SetVector to avoid nondeterminism.
Summary:
Use a SetVector for DeadBlockSet.
Resolves PR42574.
Reviewers: george.burgess.iv, uabelho, dblaikie
Subscribers: jlebar, Prazek, mgrang, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64601
llvm-svn: 365970
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index 97153292238..aeac6f548b3 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -1463,8 +1463,8 @@ deleteDeadClonedBlocks(Loop &L, ArrayRef<BasicBlock *> ExitBlocks, // Remove all MemorySSA in the dead blocks if (MSSAU) { - SmallPtrSet<BasicBlock *, 16> DeadBlockSet(DeadBlocks.begin(), - DeadBlocks.end()); + SmallSetVector<BasicBlock *, 8> DeadBlockSet(DeadBlocks.begin(), + DeadBlocks.end()); MSSAU->removeBlocks(DeadBlockSet); } @@ -1482,7 +1482,7 @@ static void deleteDeadBlocksFromLoop(Loop &L, MemorySSAUpdater *MSSAU) { // Find all the dead blocks tied to this loop, and remove them from their // successors. - SmallPtrSet<BasicBlock *, 16> DeadBlockSet; + SmallSetVector<BasicBlock *, 8> DeadBlockSet; // Start with loop/exit blocks and get a transitive closure of reachable dead // blocks. |

