Skip to content

Commit be4eab1

Browse files
committed
test CI
1 parent 74e3119 commit be4eab1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,13 +1548,19 @@ mlir::scf::tileAndFuseConsumerOfSlice(RewriterBase &rewriter,
15481548
newInitAppend = llvm::map_to_vector(
15491549
newExtractOps,
15501550
[](tensor::ExtractSliceOp op) -> Value { return op.getResult(); });
1551+
for (auto init : newInitAppend) {
1552+
llvm::dbgs() << "init: " << init << "\n";
1553+
}
15511554
}
15521555
}
15531556
LoopLikeOpInterface newLoopOp;
15541557
// 4.d. Create a new loop with the new init values for this loop.
15551558
if (auto forOp = dyn_cast<scf::ForOp>(loop.getOperation())) {
15561559
newOuts = llvm::to_vector(forOp.getInits());
15571560
newOuts.append(newInitAppend.begin(), newInitAppend.end());
1561+
for (auto out : newOuts) {
1562+
llvm::dbgs() << "newOut: " << out << "\n";
1563+
}
15581564
auto newLoop = rewriter.create<scf::ForOp>(
15591565
forOp.getLoc(), forOp.getLowerBound(), forOp.getUpperBound(),
15601566
forOp.getStep(), newOuts);
@@ -1580,6 +1586,8 @@ mlir::scf::tileAndFuseConsumerOfSlice(RewriterBase &rewriter,
15801586
rewriter.replaceOp(
15811587
loop, newLoopOp->getResults().take_front(loop->getNumResults()));
15821588
newOuterLoops.push_back(newLoopOp);
1589+
llvm::dbgs() << "newLoop: " << *newLoopOp << "\n";
1590+
llvm::dbgs() << "outerLoop: " << newOuterLoops.front() << "\n";
15831591
}
15841592

15851593
// 5.a. Reconstruct inner-most loop.

0 commit comments

Comments
 (0)