This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]