[Mlir-commits] [mlir] 1723a51 - [mlir][tensor] Drop unused AffineExpr variable (NFC) (#168651)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 19 06:33:45 PST 2025
Author: Longsheng Mou
Date: 2025-11-19T22:33:40+08:00
New Revision: 1723a5137cba77cc1aace84d392b2ecd501e1069
URL: https://github.com/llvm/llvm-project/commit/1723a5137cba77cc1aace84d392b2ecd501e1069
DIFF: https://github.com/llvm/llvm-project/commit/1723a5137cba77cc1aace84d392b2ecd501e1069.diff
LOG: [mlir][tensor] Drop unused AffineExpr variable (NFC) (#168651)
Added:
Modified:
mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp b/mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp
index 7ec61c7df81cf..aa52c0c138d0b 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp
+++ b/mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp
@@ -533,8 +533,8 @@ LogicalResult mlir::tensor::getCollapsedExtractSliceInfo(
getMixedSizes(b, loc, sliceOp.getSource());
// Helper variables and function for accumulating the size values.
- AffineExpr d0, d1, d2;
- bindDims(b.getContext(), d0, d1, d2);
+ AffineExpr d0, d1;
+ bindDims(b.getContext(), d0, d1);
// Multiply two integers.
auto mul = [&](OpFoldResult v1, OpFoldResult v2) {
auto mulMap = AffineMap::get(2, 0, {d0 * d1});
More information about the Mlir-commits
mailing list