[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
This commit is contained in:
Alina Sbirlea 2019-09-10 23:36:43 +00:00
parent 469d42fcf6
commit f9cc0393b3

View File

@ -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();
}
}
}
}