[Mlir-commits] [mlir] [mlir][tosa] Add allow-non-finites option for float min/max reduction (PR #222140)

Sayan Saha llvmlistbot at llvm.org
Thu Sep 10 06:08:06 PDT 2026


================
@@ -1421,7 +1421,14 @@ def TosaToLinalg
            "Disable tosa decompositions pass">,
     Option<"aggressiveReduceConstant", "aggressive-reduce-constant",
            "bool", /*default=*/"false",
-           "Always perform the reduce constant optimization">
+           "Always perform the reduce constant optimization">,
+    Option<"allowNonFinites", "allow-non-finites", "bool",
+           /*default=*/"false",
----------------
sahas3 wrote:

I'm torn between the default choice. This should be `default=true` to be spec compliant but that will change the emitted `linalg` IR. Should this be noted in the spec itself @lhutton1 ?

https://github.com/llvm/llvm-project/pull/222140


More information about the Mlir-commits mailing list