[Bug tree-optimization/18076] Missed jump threading optimization

law at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 15 01:01:00 GMT 2005


------- Additional Comments From law at redhat dot com  2005-02-14 20:43 -------
I'll note the updated jump threading selection code will catch all these
threading opportunities.  I get something like this:


foo:
        pushl   %ebp
        movl    %esp, %ebp
        movl    x, %eax
        testb   $1, %al
        jne     .L2
        testb   $64, %ah
        je      .L7
.L2:
        movl    $3, y
        movl    $4, y
.L7:
        leave
        ret


I'll note we still have dead stores.   :(  Missed by both the tree-ssa
optimizers because we don't handle V_MUST_DEF and the RTL optimizers for reasons
unknown.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18076



More information about the Gcc-bugs mailing list