[Mlir-commits] [mlir] [mlir][Math] Fix IPowIOp folding crash for i1 (PR #179684)
Matthias Springer
llvmlistbot at llvm.org
Wed Feb 4 08:47:42 PST 2026
================
@@ -0,0 +1,15 @@
+// RUN: mlir-opt %s --sparsification-and-bufferization | FileCheck %s
+
+module {
+ func.func @main() {
+ %0 = irdl.c_pred "::llvm::isa<::mlir::IntegerAttr>($_self)"
+ %1 = sparse_tensor.has_runtime_library
+ %2 = math.ctlz %1 : i1
+ %3 = math.ipowi %2, %1 : i1
----------------
matthias-springer wrote:
Can you add a minimal test to `Math/canonicalize.mlir` instead?
https://github.com/llvm/llvm-project/pull/179684
More information about the Mlir-commits
mailing list