[llvm-bugs] [Bug 35129] ptest not used for pointer comparison (but is for integer)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 21 04:16:11 PDT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Resolving the 'allof' MOVMSK(PCMPEQ(x,0)) == -1 pattern now uses PTEST if its
available.

The 'anyof' cases still must use MOVMSK as there isn't a PTEST equivalent that
wouldn't involve still doing the PCMPEQ, which is never quicker than the MOVMSK
path on any existing hardware.

-- 
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/20200621/5f14a409/attachment.html>


More information about the llvm-bugs mailing list