[llvm] [GlobalISel] Introduce `G_POISON` (PR #127825)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 19:01:34 PST 2025
================
@@ -11,3 +11,14 @@ define <4 x i1> @foo() {
entry:
ret <4 x i1> undef ;
}
+
+define <4 x i1> @foo_poison() {
+ ; CHECK-LABEL: name: foo_poison
+ ; CHECK: bb.1.entry:
+ ; CHECK: [[DEF:%[0-9]+]]:_(<4 x s1>) = G_POISON
+ ; CHECK: [[ANYEXT:%[0-9]+]]:_(<4 x s32>) = G_ANYEXT [[DEF]](<4 x s1>)
+ ; CHECK: $xmm0 = COPY [[ANYEXT]](<4 x s32>)
+ ; CHECK: RET 0, implicit $xmm0
+entry:
+ ret <4 x i1> poison ;
----------------
arsenm wrote:
don't need comment ;
https://github.com/llvm/llvm-project/pull/127825
More information about the llvm-commits
mailing list