File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
compiler/src/iree/compiler/Dialect/Stream/Analysis/Partitioning Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ PartitionSet partitionStreamableOpsReference(
125
125
// dependency chain down the use-def chain to a partition.
126
126
llvm::BitVector consumers (builders.size (), /* t=*/ false );
127
127
for (auto user : op.getUsers ()) {
128
- auto &userInfo = opInfos[user];
128
+ auto userInfoIt = opInfos.find (user);
129
+ if (userInfoIt == opInfos.end ()) continue ;
130
+ auto &userInfo = userInfoIt->second ;
129
131
LLVM_DEBUG ({
130
132
llvm::dbgs () << " Testing user:\n " ;
131
133
user->print (llvm::dbgs (), *asmState);
@@ -332,7 +334,9 @@ PartitionSet partitionRegionConcurrencyReference(
332
334
// We prune the set based on whether the users are part of a transitive
333
335
// dependency chain down the use-def chain to a wave.
334
336
for (auto user : op.getUsers ()) {
335
- auto &userInfo = opInfos[user];
337
+ auto userInfoIt = opInfos.find (user);
338
+ if (userInfoIt == opInfos.end ()) continue ;
339
+ auto &userInfo = userInfoIt->second ;
336
340
LLVM_DEBUG ({
337
341
llvm::dbgs () << " Testing user:\n " ;
338
342
user->print (llvm::dbgs (), *asmState);
You can’t perform that action at this time.
0 commit comments