[llvm-bugs] [Bug 32546] [AVX-512] Missed opportunity to perform k-operations before copying to GPR

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 8 05:03:10 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=32546

Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Fixed By Commit(s)|                            |r371329
             Status|NEW                         |RESOLVED
                 CC|                            |llvm-dev at redking.me.uk
         Resolution|---                         |FIXED

--- Comment #1 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
This looks like its fixed in trunk, I've added a test case at rL371329

llc -mattr=+avx512f

vcmpltps %zmm3, %zmm2, %k1
vcmpltps %zmm1, %zmm0, %k0 {%k1}
kmovw %k0, %eax
movzbl %al, %eax
vmovd %eax, %xmm0
vpbroadcastd %xmm0, %ymm0
retq

llc -mattr=+avx512dq,+avx512vl

vcmpltps %ymm3, %ymm2, %k1
vcmpltps %ymm1, %ymm0, %k0 {%k1}
kmovb %k0, %eax
vpbroadcastd %eax, %ymm0
retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190908/2de36fbe/attachment.html>


More information about the llvm-bugs mailing list