[spirv] NFC: Drop unnecessary increment (#13047)
diff --git a/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
index 92c87cd..bc8ccfb 100644
--- a/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
+++ b/compiler/src/iree/compiler/Codegen/SPIRV/SPIRVTile.cpp
@@ -137,7 +137,7 @@
// We can have more than 3 dimensions being tiled (e.g., for convolutions with
// non-1 batch). But only the innermost 3 dimensions are distributed.
for (auto [dim, loop] : zip(llvm::seq(0, 3), llvm::reverse(loops))) {
- loop->setAttr(attrName, rewriter.getIndexAttr(dim++));
+ loop->setAttr(attrName, rewriter.getIndexAttr(dim));
}
return success();
}