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

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 24 17:18:13 PDT 2020


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

listmail at philipreames.com changed:

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

--- Comment #7 from listmail at philipreames.com ---
Disregard previous comment.  As Simon had previously noted, the original two IR
fragments are not the same.  

The first checks if at least one 64 bit sub-part is zero.  The second checks if
any bit in the 128 bit span is non-zero.  In terms of null checks, the former
is an or of the two sub-parts, the later is an and.

-- 
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/20200625/6b951a23/attachment.html>


More information about the llvm-bugs mailing list