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

Hans Wennborg <[email protected]> changed:

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

--- Comment #7 from Hans Wennborg <[email protected]> ---
Thanks for updating the bug!

Yes, this got fixed by Erik in
http://llvm.org/viewvc/llvm-project?rev=222121&view=rev.

In 3.6 we generate:

    leal    -1(%rdi), %ecx
    xorl    %eax, %eax
    cmpl    $4, %ecx
    cmovbl    %edi, %eax
    retq

After http://llvm.org/viewvc/llvm-project/?view=rev&revision=227125, we also
exploit unreachable default cases, so with 3.7 the example above compiles to:

    movl    %edi, %eax
    retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to