Skip to content

Commit 05dd8c5

Browse files
[NFC] fix clang-format in 119039
1 parent 2e9bfca commit 05dd8c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,13 @@ FailureOr<TilingResult> tensor::bubbleUpPadSlice(OpBuilder &b,
822822
// the source tensor. (Similar to newOffset.)
823823
// srcSize - newOffset represents how much length we have available
824824
// and length - newLow represents how much length we want at most.
825-
// Note that there are many ways to order this indexing math to compute newLength, but we want to make sure that the final affine.min ops in the sequence are bounding the index to as small a value as possible. If ValueBoundsOpInterface is used, this calcuation will get upper bounds from the affine.min ops, so we want to use the smallest known value to set the bound at the end of the computation sequence. In this case, the index will be upper bounded by length - newLow.
825+
// Note that there are many ways to order this indexing math to compute
826+
// newLength, but we want to make sure that the final affine.min ops in the
827+
// sequence are bounding the index to as small a value as possible. If
828+
// ValueBoundsOpInterface is used, this calcuation will get upper bounds
829+
// from the affine.min ops, so we want to use the smallest known value to
830+
// set the bound at the end of the computation sequence. In this case, the
831+
// index will be upper bounded by length - newLow.
826832
OpFoldResult newLength = min(sub(srcSize, newOffset), sub(length, newLow));
827833
// Optimization: If low = 0, then newLow = 0. then newLength >= 0 assuming
828834
// length >= 0.

0 commit comments

Comments
 (0)