[Mlir-commits] [mlir] [mlir][math] Fix APInt assertion in IPowI folding for i1 types (PR #177874)

lonely eagle llvmlistbot at llvm.org
Sun Jan 25 18:39:40 PST 2026


================
@@ -0,0 +1,13 @@
+// RUN: mlir-opt --remove-dead-values %s -o - | FileCheck %s
+// NOTE: Assertions have been autogenerated by utils/generate-test-checks.py
+
+// CHECK-LABEL:   func.func @main() {
+// CHECK:           return
+// CHECK:         }
+func.func @main() {
+  %1 = vector.constant_mask [0, 0] : vector<2x4xi1>
----------------
linuxlonelyeagle wrote:

May be you need add the test to https://github.com/llvm/llvm-project/blob/main/mlir/test/Dialect/Math/canonicalize_ipowi.mlir . This is because it was triggered by the fold function in `math.ipowi`

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


More information about the Mlir-commits mailing list