We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9f993 commit 48e4d67Copy full SHA for 48e4d67
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -2259,10 +2259,7 @@ DSEState::eliminateDeadDefs(const MemoryLocationWrapper &KillingLocWrapper) {
2259
KillingLocWrapper.MemLoc, DeadLocWrapper.MemLoc,
2260
KillingOffset, DeadOffset);
2261
if (OR == OW_MaybePartial) {
2262
- auto Iter =
2263
- IOLs.insert(std::make_pair<BasicBlock *, InstOverlapIntervalsTy>(
2264
- DeadLocWrapper.DefInst->getParent(), InstOverlapIntervalsTy()));
2265
- auto &IOL = Iter.first->second;
+ auto &IOL = IOLs[DeadLocWrapper.DefInst->getParent()];
2266
OR = isPartialOverwrite(KillingLocWrapper.MemLoc, DeadLocWrapper.MemLoc,
2267
KillingOffset, DeadOffset,
2268
DeadLocWrapper.DefInst, IOL);
0 commit comments