[Mlir-commits] [mlir] [mlir][arith] DCE `getPredicateByName` (PR #121165)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Dec 26 14:57:01 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Maksim Levental (makslevental)
<details>
<summary>Changes</summary>
This is dead code (no impls or uses anywhere in the code base) that causes linker errors in some build configurations.
---
Full diff: https://github.com/llvm/llvm-project/pull/121165.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/Arith/IR/ArithOps.td (-8)
``````````diff
diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
index 2f71caaa593a6c..0722ff68d890de 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
+++ b/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
@@ -1499,10 +1499,6 @@ def Arith_CmpIOp
SignlessIntegerLikeOfAnyRank:$lhs,
SignlessIntegerLikeOfAnyRank:$rhs);
- let extraClassDeclaration = [{
- static arith::CmpIPredicate getPredicateByName(StringRef name);
- }];
-
let hasFolder = 1;
let hasCanonicalizer = 1;
}
@@ -1546,10 +1542,6 @@ def Arith_CmpFOp : Arith_CompareOp<"cmpf",
DefaultValuedAttr<
Arith_FastMathAttr, "::mlir::arith::FastMathFlags::none">:$fastmath);
- let extraClassDeclaration = [{
- static arith::CmpFPredicate getPredicateByName(StringRef name);
- }];
-
let hasFolder = 1;
let hasCanonicalizer = 1;
let assemblyFormat = [{ $predicate `,` $lhs `,` $rhs (`fastmath` `` $fastmath^)?
``````````
</details>
https://github.com/llvm/llvm-project/pull/121165
More information about the Mlir-commits
mailing list