[llvm] [X86][ISel] Improve logic for optimizing `movmsk(bitcast(shuffle(x)))` (PR #68369)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 09:18:57 PDT 2023


================
@@ -265,7 +265,6 @@ define i32 @ptestz_v2i64_signbits(<2 x i64> %c, i32 %a, i32 %b) {
 ; SSE41-LABEL: ptestz_v2i64_signbits:
 ; SSE41:       # %bb.0:
 ; SSE41-NEXT:    movl %edi, %eax
-; SSE41-NEXT:    pshufd {{.*#+}} xmm0 = xmm0[1,1,3,3]
----------------
goldsteinn wrote:

Err, yeah I had flipped shuffle src/dst in the codes.

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


More information about the llvm-commits mailing list