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 e496a3e commit 4f2616dCopy full SHA for 4f2616d
mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
@@ -1030,7 +1030,9 @@ struct FuncOpVectorUnroll final : OpRewritePattern<func::FuncOp> {
1030
}
1031
1032
// Replace dummy operands of new `vector.insert_strided_slice` ops with
1033
- // their corresponding new function arguments.
+ // their corresponding new function arguments. The new
1034
+ // `vector.insert_strided_slice` ops are inserted only into the entry block,
1035
+ // so iterating over that block is sufficient.
1036
size_t unrolledInputIdx = 0;
1037
for (auto [count, op] : enumerate(entryBlock.getOperations())) {
1038
Operation &curOp = op;
0 commit comments