[llvm] [DAG] canCreateUndefOrPoison/isGuaranteedNotToBeUndefOrPoison - SCALAR_TO_VECTOR upper elements are poison (PR #217185)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 02:44:17 PDT 2026


================
@@ -2194,6 +2194,8 @@ define void @PR92471(ptr %0, ptr %1) nounwind {
 ; SSE2-NEXT:    movq {{.*#+}} xmm0 = mem[0],zero
 ; SSE2-NEXT:    movd {{.*#+}} xmm1 = mem[0],zero,zero,zero
 ; SSE2-NEXT:    pinsrw $2, 12(%rdi), %xmm1
+; SSE2-NEXT:    pextrw $7, %xmm0, %eax
+; SSE2-NEXT:    pinsrw $3, %eax, %xmm1
----------------
RKSimon wrote:

Please raise a separate issue - overloading tickets just slows things down. And make a note of the SimplifyDemandedVectorElts workaround.

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


More information about the llvm-commits mailing list