[llvm-bugs] [Bug 42674] [X86][SSE] Missed vXi8 sum reduction optimization

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 21 03:25:07 PDT 2019


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Fixed By Commit(s)|                            |r366636
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #2 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Fixed in rL366636

sum:
        vmovdqu xmm0, xmmword ptr [rdi]
        vpshufd xmm1, xmm0, 78          # xmm1 = xmm0[2,3,0,1]
        vpaddb  xmm0, xmm0, xmm1
        vpxor   xmm1, xmm1, xmm1
        vpsadbw xmm0, xmm0, xmm1
        vpextrb eax, xmm0, 0
        ret

-- 
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/20190721/93af1a73/attachment.html>


More information about the llvm-bugs mailing list