[LLVMbugs] [Bug 15946] New: Poor code generated for double conditional

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 9 14:47:50 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15946

            Bug ID: 15946
           Summary: Poor code generated for double conditional
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

gcc gives:
        xor    %eax,%eax
        ucomisd %xmm0,%xmm1
        seta   %al
        retq

clang gives:
    ucomisd    %xmm0,%xmm1
    seta    %al
    movzbl    %al,%eax
    ret

https://bugzilla.mozilla.org/show_bug.cgi?id=869525#c6 gives some more
justification for this optimization.

-- 
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/20130509/04131e5f/attachment.html>


More information about the llvm-bugs mailing list