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 8aa76d3 commit fe9f1a2Copy full SHA for fe9f1a2
mlir/lib/Dialect/Affine/Transforms/PipelineDataTransfer.cpp
@@ -350,8 +350,7 @@ void PipelineDataTransfer::runOnAffineForOp(AffineForOp forOp) {
350
}
351
// Everything else (including compute ops and dma finish) are shifted by one.
352
for (auto &op : forOp.getBody()->without_terminator())
353
- if (!instShiftMap.contains(&op))
354
- instShiftMap[&op] = 1;
+ instShiftMap.try_emplace(&op, 1);
355
356
// Get shifts stored in map.
357
SmallVector<uint64_t, 8> shifts(forOp.getBody()->getOperations().size());
0 commit comments