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 23c8340 commit ef436f3Copy full SHA for ef436f3
mlir/lib/Transforms/SROA.cpp
@@ -100,10 +100,11 @@ computeDestructuringInfo(DestructurableMemorySlot &slot,
100
mlir::getForwardSlice(slot.ptr, &forwardSlice);
101
for (Operation *user : forwardSlice) {
102
// If the next operation has no blocking uses, everything is fine.
103
- if (!info.userToBlockingUses.contains(user))
+ auto it = info.userToBlockingUses.find(user);
104
+ if (it == info.userToBlockingUses.end())
105
continue;
106
- SmallPtrSet<OpOperand *, 4> &blockingUses = info.userToBlockingUses[user];
107
+ SmallPtrSet<OpOperand *, 4> &blockingUses = it->second;
108
auto promotable = dyn_cast<PromotableOpInterface>(user);
109
110
// An operation that has blocking uses must be promoted. If it is not
0 commit comments