Skip to content

Commit afe3a82

Browse files
committed
test CI
1 parent 74e3119 commit afe3a82

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,13 +1548,27 @@ 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());
1560+
llvm::dbgs() << "before append: \n";
1561+
for (auto out : newOuts) {
1562+
llvm::dbgs() << "newOut: " << out << "\n";
1563+
}
1564+
for (auto init : newInitAppend) {
1565+
llvm::dbgs() << "init: " << init << "\n";
1566+
}
1567+
llvm::dbgs() << "newInitAppend begin: " << *newInitAppend.begin() << "\n";
15571568
newOuts.append(newInitAppend.begin(), newInitAppend.end());
1569+
for (auto out : newOuts) {
1570+
llvm::dbgs() << "newOut: " << out << "\n";
1571+
}
15581572
auto newLoop = rewriter.create<scf::ForOp>(
15591573
forOp.getLoc(), forOp.getLowerBound(), forOp.getUpperBound(),
15601574
forOp.getStep(), newOuts);
@@ -1580,6 +1594,8 @@ mlir::scf::tileAndFuseConsumerOfSlice(RewriterBase &rewriter,
15801594
rewriter.replaceOp(
15811595
loop, newLoopOp->getResults().take_front(loop->getNumResults()));
15821596
newOuterLoops.push_back(newLoopOp);
1597+
llvm::dbgs() << "newLoop: " << *newLoopOp << "\n";
1598+
llvm::dbgs() << "outerLoop: " << newOuterLoops.front() << "\n";
15831599
}
15841600

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

0 commit comments

Comments
 (0)