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 834c8ff commit fc64a16Copy full SHA for fc64a16
mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp
@@ -73,7 +73,7 @@ class DetensorizeGenericOp : public OpConversionPattern<GenericOp> {
73
74
// Split the op's region before the op. This way, we have a clear insertion
75
// point in which the op can be inlined.
76
- Block *newBlock = originalBlock->splitBlock(op);
+ Block *newBlock = rewriter.splitBlock(originalBlock, Block::iterator(op));
77
rewriter.inlineRegionBefore(op.region(), newBlock);
78
// Now that op's region is inlined, the operands of its YieldOp are mapped
79
// to the materialized target values. Therefore, we can replace the op's
0 commit comments