[Mlir-commits] [mlir] 6c0ac88 - [mlir][arith][NFC] Remove redundant trait declaration (#145007)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jun 20 05:32:59 PDT 2025
Author: Matthias Springer
Date: 2025-06-20T14:32:56+02:00
New Revision: 6c0ac888c59ca34a7f4e1dc2702b30e0db5cbac3
URL: https://github.com/llvm/llvm-project/commit/6c0ac888c59ca34a7f4e1dc2702b30e0db5cbac3
DIFF: https://github.com/llvm/llvm-project/commit/6c0ac888c59ca34a7f4e1dc2702b30e0db5cbac3.diff
LOG: [mlir][arith][NFC] Remove redundant trait declaration (#145007)
`Arith_Op` already declares the `ElementwiseMappable` traits, so they
don't have to be declared for `arith.select`.
Added:
Modified:
mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
index 0518cac156eba..ef9ccb7e87946 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
+++ b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
@@ -1688,8 +1688,7 @@ def SelectOp : Arith_Op<"select", [Pure,
AllTypesMatch<["true_value", "false_value", "result"]>,
BooleanConditionOrMatchingShape<"condition", "result">,
DeclareOpInterfaceMethods<InferIntRangeInterface, ["inferResultRangesFromOptional"]>,
- DeclareOpInterfaceMethods<SelectLikeOpInterface>,
- ] # ElementwiseMappable.traits> {
+ DeclareOpInterfaceMethods<SelectLikeOpInterface>]> {
let summary = "select operation";
let description = [{
The `arith.select` operation chooses one value based on a binary condition
More information about the Mlir-commits
mailing list