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/Analysis/MemorySSAUpdater.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/Analysis/MemorySSAUpdater.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemorySSAUpdater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemorySSAUpdater.cpp b/llvm/lib/Analysis/MemorySSAUpdater.cpp index 19559a62eb9..4c1feee7fd9 100644 --- a/llvm/lib/Analysis/MemorySSAUpdater.cpp +++ b/llvm/lib/Analysis/MemorySSAUpdater.cpp @@ -1247,7 +1247,7 @@ void MemorySSAUpdater::removeMemoryAccess(MemoryAccess *MA, bool OptimizePhis) { } void MemorySSAUpdater::removeBlocks( - const SmallPtrSetImpl<BasicBlock *> &DeadBlocks) { + const SmallSetVector<BasicBlock *, 8> &DeadBlocks) { // First delete all uses of BB in MemoryPhis. for (BasicBlock *BB : DeadBlocks) { Instruction *TI = BB->getTerminator(); |