Skip to content

Commit c66a976

Browse files
authored
backport causal fix (#698)
1 parent 08ed6c4 commit c66a976

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Dialect/TritonGPU/Transforms/Utility.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,10 @@ struct ForOpDeadArgElimination : public OpRewritePattern<scf::ForOp> {
12121212
auto result = mlir::cast<OpResult>(value);
12131213
OpOperand &forOperand = *nestedFor.getTiedLoopInit(result);
12141214
markLive(forOperand.get());
1215+
// Mark the lowerBound, upperBound, and step as live.
1216+
markLive(nestedFor.getLowerBound());
1217+
markLive(nestedFor.getUpperBound());
1218+
markLive(nestedFor.getStep());
12151219
auto nestedYieldOp =
12161220
cast<scf::YieldOp>(nestedFor.getBody()->getTerminator());
12171221
Value nestedYieldOperand =

0 commit comments

Comments
 (0)