Skip to content

Commit 32f66c4

Browse files
committed
[PyTorchSim] Fix dram_stride update logic
1 parent 02b54db commit 32f66c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mlir/test/lib/Analysis/TestLoopPadding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ mlir::AffineExpr TestLoopPadding::updateAffineExprWithBounds(mlir::AffineExpr ex
608608
}
609609

610610
int64_t value = intAttr.getInt();
611-
if (value > targetCoefficient || (value == targetCoefficient && i < updated_position_index))
611+
if (value > targetCoefficient)
612612
dram_stride[i] = mlir::IntegerAttr::get(intAttr.getType(), (value / upperBound) * paddedUpperBound);
613613
}
614614

0 commit comments

Comments
 (0)