Skip to content

Commit 48e4d67

Browse files
[DSE] Simplify code with MapVector::operator[] (NFC) (#111621)
1 parent 7d9f993 commit 48e4d67

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,10 +2259,7 @@ DSEState::eliminateDeadDefs(const MemoryLocationWrapper &KillingLocWrapper) {
22592259
KillingLocWrapper.MemLoc, DeadLocWrapper.MemLoc,
22602260
KillingOffset, DeadOffset);
22612261
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;
2262+
auto &IOL = IOLs[DeadLocWrapper.DefInst->getParent()];
22662263
OR = isPartialOverwrite(KillingLocWrapper.MemLoc, DeadLocWrapper.MemLoc,
22672264
KillingOffset, DeadOffset,
22682265
DeadLocWrapper.DefInst, IOL);

0 commit comments

Comments
 (0)