diff options
author | Bryant Wong <llvm-commits@xorshift.org> | 2017-04-16 19:45:51 +0000 |
---|---|---|
committer | Bryant Wong <llvm-commits@xorshift.org> | 2017-04-16 19:45:51 +0000 |
commit | c819ba88740957079154096f887230ac1c2b7372 (patch) | |
tree | 55ef16fa687ea572899ac749c428dda006889d64 /llvm/lib/Analysis/MemorySSA.cpp | |
parent | ae33dfac6ea12d72c6058809b4ea43723999d1e9 (diff) | |
download | bcm5719-llvm-c819ba88740957079154096f887230ac1c2b7372.tar.gz bcm5719-llvm-c819ba88740957079154096f887230ac1c2b7372.zip |
MemorySSA: Stop tracking def-or-use blocks.
The tracking is unused, since MemoryPhis are not pruned as of r282419.
Differential Revision: https://reviews.llvm.org/D32121
llvm-svn: 300428
Diffstat (limited to 'llvm/lib/Analysis/MemorySSA.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemorySSA.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp index 910170561ab..2480fe44d5c 100644 --- a/llvm/lib/Analysis/MemorySSA.cpp +++ b/llvm/lib/Analysis/MemorySSA.cpp @@ -1291,7 +1291,6 @@ void MemorySSA::buildMemorySSA() { // could just look up the memory access for every possible instruction in the // stream. SmallPtrSet<BasicBlock *, 32> DefiningBlocks; - SmallPtrSet<BasicBlock *, 32> DefUseBlocks; // Go through each block, figure out where defs occur, and chain together all // the accesses. for (BasicBlock &B : F) { @@ -1316,8 +1315,6 @@ void MemorySSA::buildMemorySSA() { } if (InsertIntoDef) DefiningBlocks.insert(&B); - if (Accesses) - DefUseBlocks.insert(&B); } placePHINodes(DefiningBlocks, BBNumbers); |