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 6dc0911 commit d4cc270Copy full SHA for d4cc270
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
@@ -754,9 +754,7 @@ struct SliceDynamicSizeCanonicalization
754
// if size op has -1 indicating dynamic shape but corresponding dim on the
755
// output is statically known, update size to match with known output dim
756
// shape
757
- for (const auto i : llvm::enumerate(sliceSizes)) {
758
- int64_t size = i.value();
759
- size_t index = i.index();
+ for (const auto &[index, size] : llvm::enumerate(sliceSizes)) {
760
if (size == -1 && !resultType.isDynamicDim(index)) {
761
sliceSizes[index] = resultType.getDimSize(index);
762
replaceSliceSize = true;
0 commit comments