[Mlir-commits] [mlir] 9274200 - [mlir] Fix the build in the release mode
Kazu Hirata
llvmlistbot at llvm.org
Sat Aug 23 15:44:55 PDT 2025
Author: Kazu Hirata
Date: 2025-08-23T15:44:49-07:00
New Revision: 927420063f1db1d3c3561384f64171f8c96d48a4
URL: https://github.com/llvm/llvm-project/commit/927420063f1db1d3c3561384f64171f8c96d48a4
DIFF: https://github.com/llvm/llvm-project/commit/927420063f1db1d3c3561384f64171f8c96d48a4.diff
LOG: [mlir] Fix the build in the release mode
This patch fixes:
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp:286:47: error: use
of undeclared identifier 'stringifyReassocIndices'
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp:412:47: error: use
of undeclared identifier 'stringifyReassocIndices'
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
index ed5d2771998c6..e9a8b253eea35 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
@@ -89,11 +89,11 @@ static bool hasAtMostOneResultFunctionOfDim(AffineMap map, int64_t dim) {
}
return true;
}
+#endif // NDEBUG
static std::string stringifyReassocIndices(ReassociationIndicesRef ri) {
return llvm::interleaved(ri, ", ", /*Prefix=*/"|", /*Suffix=*/"");
}
-#endif // NDEBUG
/// Return the index of the first result of `map` that is a function of
/// AffineDimExpr(dim), std::nullopt otherwise.
More information about the Mlir-commits
mailing list