[Mlir-commits] [mlir] [mlir][tosa] Remove 'Pure' trait from operations that are not speculatable (PR #185700)
Sayan Saha
llvmlistbot at llvm.org
Fri Mar 13 05:00:08 PDT 2026
================
@@ -1528,7 +1597,7 @@ def Tosa_NegateOp : Tosa_InferShapedTypeOp<"negate", [
//===----------------------------------------------------------------------===//
// Operator: reciprocal
//===----------------------------------------------------------------------===//
-def Tosa_ReciprocalOp : Tosa_ElementwiseUnaryOp<"reciprocal"> {
+def Tosa_ReciprocalOp : Tosa_ElementwiseUnaryOp<"reciprocal", [Pure]> {
let summary = "Elementwise reciprocal operator.";
let description = [{
----------------
sahas3 wrote:
Should this not be `pure` since the slope computed for the table may be out of range (same reasoning as tosa.table) ?
https://github.com/llvm/llvm-project/pull/185700
More information about the Mlir-commits
mailing list