Skip to content

Commit

Permalink
Apply clang-tidy fixes for modernize-loop-convert in Utils.cpp (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-eph committed Feb 12, 2024
1 parent 8189db9 commit e546a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/SCF/Utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ void mlir::collapseParallelLoops(
SmallVector<Value, 3> lowerBounds, upperBounds, steps;
auto cst0 = outsideBuilder.create<arith::ConstantIndexOp>(loc, 0);
auto cst1 = outsideBuilder.create<arith::ConstantIndexOp>(loc, 1);
for (unsigned i = 0, e = sortedDimensions.size(); i < e; ++i) {
for (auto &sortedDimension : sortedDimensions) {
Value newUpperBound = outsideBuilder.create<arith::ConstantIndexOp>(loc, 1);
for (auto idx : sortedDimensions[i]) {
for (auto idx : sortedDimension) {
newUpperBound = outsideBuilder.create<arith::MulIOp>(
loc, newUpperBound, normalizedUpperBounds[idx]);
}
Expand Down

0 comments on commit e546a6e

Please sign in to comment.