Skip to content

Commit 42d516b

Browse files
authored
Fixup the location of creating constant op (Xilinx#915)
1 parent b4e9716 commit 42d516b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Transform/AIRMiscPasses.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,7 @@ void AIRSplitL2MemrefForBufferConstraintPass::runOnOperation() {
17371737
SmallVector<Value> strides = theOtherChanOp[0].getStrides();
17381738
if (wraps.empty()) {
17391739
// Populate default wraps, if wraps is an empty vector.
1740+
rewriter.setInsertionPoint(theOtherChanOp[0]);
17401741
air::populateDefaultWrapsAndStrides(
17411742
rewriter, theOtherChanOp[0].getMemref(), offsets, wraps, strides);
17421743
}

0 commit comments

Comments
 (0)