Skip to content

Commit 7eae9bb

Browse files
authored
[mlir][scf] Fix doc on emitNormalizedLoopBounds, NFC (#98372)
Fix an old comment that doesn't match the function anymore.
1 parent 0483f14 commit 7eae9bb

File tree

1 file changed

+2
-9
lines changed
  • mlir/include/mlir/Dialect/SCF/Utils

1 file changed

+2
-9
lines changed

mlir/include/mlir/Dialect/SCF/Utils/Utils.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,8 @@ LogicalResult loopUnrollByFactor(
127127
/// for operations with results are not supported.
128128
LogicalResult loopUnrollJamByFactor(scf::ForOp forOp, uint64_t unrollFactor);
129129

130-
/// Transform a loop with a strictly positive step
131-
/// for %i = %lb to %ub step %s
132-
/// into a 0-based loop with step 1
133-
/// for %ii = 0 to ceildiv(%ub - %lb, %s) step 1 {
134-
/// %i = %ii * %s + %lb
135-
/// Insert the induction variable remapping in the body of `inner`, which is
136-
/// expected to be either `loop` or another loop perfectly nested under `loop`.
137-
/// Insert the definition of new bounds immediate before `outer`, which is
138-
/// expected to be either `loop` or its parent in the loop nest.
130+
/// Materialize bounds and step of a zero-based and unit-step loop derived by
131+
/// normalizing the specified bounds and step.
139132
Range emitNormalizedLoopBounds(RewriterBase &rewriter, Location loc,
140133
OpFoldResult lb, OpFoldResult ub,
141134
OpFoldResult step);

0 commit comments

Comments
 (0)