[Mlir-commits] [mlir] [mlir][vector] Fix crash in vector.from_elements folding with poison values (PR #158528)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Sep 22 06:43:49 PDT 2025
================
@@ -3375,6 +3375,42 @@ func.func @negative_from_elements_to_constant() -> vector<1x!llvm.ptr> {
return %b : vector<1x!llvm.ptr>
}
+// -----
+
+// CHECK-LABEL: @negative_from_elements_poison
+// CHECK: %[[VAL:.*]] = ub.poison : vector<2xf32>
+// CHECK: return %[[VAL]] : vector<2xf32>
+func.func @negative_from_elements_poison_f32() -> vector<2xf32> {
----------------
banach-space wrote:
@jhalakpatel , you missed my request to document these tests:
> I suggest adding a comment to clarify.
;-) In the spirit of maintaining healthy test hygiene: https://github.com/llvm/llvm-project/pull/160106. Could you review and approve if it makes sense? Thanks!
https://github.com/llvm/llvm-project/pull/158528
More information about the Mlir-commits
mailing list