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 393ef36 commit c720c6bCopy full SHA for c720c6b
mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
@@ -1038,7 +1038,7 @@ struct FuncOpVectorUnroll final : OpRewritePattern<func::FuncOp> {
1038
// Since all newly created operations are in the beginning, reaching the
1039
// end of them means that any later `vector.insert_strided_slice` should
1040
// not be touched.
1041
- if (op->getBlock() == &entryBlock &&
+ if (op->getBlock() != &entryBlock ||
1042
static_cast<size_t>(std::distance(entryBlock.begin(),
1043
op->getIterator())) >= newOpCount)
1044
return;
0 commit comments