[Mlir-commits] [mlir] [mlir][LLVMIR] Skip or folding for mismatched constant types (PR #226026)
Tobias Gysi
llvmlistbot at llvm.org
Thu Sep 24 00:10:58 PDT 2026
================
@@ -88,6 +88,36 @@ llvm.func @or_basic() -> i32 {
// -----
+// A constant-like op can fold to an attribute whose type differs from its
+// result type. Do not fold llvm.or using such an attribute.
+// CHECK-LABEL: llvm.func @or_mismatched_lhs
----------------
gysit wrote:
```suggestion
// result type. Do not fold llvm.or using such an attribute.
// CHECK-LABEL: llvm.func @or_mismatched_lhs
```
ultra nit: let's add a white space here.
https://github.com/llvm/llvm-project/pull/226026
More information about the Mlir-commits
mailing list