diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-09-10 23:36:43 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-09-10 23:36:43 +0000 |
commit | f9cc0393b341220656bcb085de51247f2bec6692 (patch) | |
tree | 88c55e893ed27613cdea0ef40ebdd111d9b424ac /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 469d42fcf6b674137c2406c506b6ab4141abcb44 (diff) | |
download | bcm5719-llvm-f9cc0393b341220656bcb085de51247f2bec6692.tar.gz bcm5719-llvm-f9cc0393b341220656bcb085de51247f2bec6692.zip |
[MemorySSA] MemorySSA should not model debuginfo, and need not update it.
Reverts the change in r371084, but keeps the test.
After r371565, debuginfo cannot be modelled in MemorySSA, even with a
non-standard AA pipeline.
llvm-svn: 371573
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index d4c718df4a4..5fa371377c8 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -250,11 +250,8 @@ bool llvm::MergeBlockIntoPredecessor(BasicBlock *BB, DomTreeUpdater *DTU, llvm::findDbgValues(DbgValues, Incoming); for (auto &DVI : DbgValues) { auto R = DbgValueSet.insert({DVI->getVariable(), DVI->getExpression()}); - if (!R.second) { - if (MSSAU) - MSSAU->removeMemoryAccess(DVI); + if (!R.second) DVI->eraseFromParent(); - } } } } |