@@ -294,8 +294,8 @@ static Value ceilDivPositive(OpBuilder &builder, Location loc, Value dividend,
294
294
}
295
295
296
296
// / Returns the trip count of `forOp` if its' low bound, high bound and step are
297
- // / constants, or optional otherwise. Trip count is computed as ceilDiv(highBound
298
- // / - lowBound, step).
297
+ // / constants, or optional otherwise. Trip count is computed as
298
+ // / ceilDiv(highBound - lowBound, step).
299
299
static std::optional<int64_t > getConstantTripCount (scf::ForOp forOp) {
300
300
std::optional<int64_t > lbCstOp = getConstantIntValue (forOp.getLowerBound ());
301
301
std::optional<int64_t > ubCstOp = getConstantIntValue (forOp.getUpperBound ());
@@ -1379,11 +1379,11 @@ FailureOr<scf::ForallOp> mlir::normalizeForallOp(RewriterBase &rewriter,
1379
1379
1380
1380
SmallVector<OpFoldResult> newLbs, newUbs, newSteps;
1381
1381
for (auto [lb, ub, step] : llvm::zip_equal (lbs, ubs, steps)) {
1382
- LoopParams normalizedLoopParams =
1382
+ Range normalizedLoopParams =
1383
1383
emitNormalizedLoopBounds (rewriter, forallOp.getLoc (), lb, ub, step);
1384
- newLbs.push_back (normalizedLoopParams.lowerBound );
1385
- newUbs.push_back (normalizedLoopParams.upperBound );
1386
- newSteps.push_back (normalizedLoopParams.step );
1384
+ newLbs.push_back (normalizedLoopParams.offset );
1385
+ newUbs.push_back (normalizedLoopParams.size );
1386
+ newSteps.push_back (normalizedLoopParams.stride );
1387
1387
}
1388
1388
1389
1389
auto normalizedForallOp = rewriter.create <scf::ForallOp>(
0 commit comments