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 0614b3c commit 5fdda41Copy full SHA for 5fdda41
mlir/lib/Transforms/Mem2Reg.cpp
@@ -285,10 +285,11 @@ LogicalResult MemorySlotPromotionAnalyzer::computeBlockingUses(
285
mlir::getForwardSlice(slot.ptr, &forwardSlice);
286
for (Operation *user : forwardSlice) {
287
// If the next operation has no blocking uses, everything is fine.
288
- if (!userToBlockingUses.contains(user))
+ auto it = userToBlockingUses.find(user);
289
+ if (it == userToBlockingUses.end())
290
continue;
291
- SmallPtrSet<OpOperand *, 4> &blockingUses = userToBlockingUses[user];
292
+ SmallPtrSet<OpOperand *, 4> &blockingUses = it->second;
293
294
SmallVector<OpOperand *> newBlockingUses;
295
// If the operation decides it cannot deal with removing the blocking uses,
0 commit comments