[Bug optimization/13629] [tree-ssa][Regression] dominator optimizations can pessimize code

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 15 23:52:00 GMT 2004


------- Additional Comments From steven at gcc dot gnu dot org  2004-01-15 23:52 -------
Running a DCE pass before DOM1 cures the problem: 
 
Resulting assembly with tree-ssa + patch.DCE_before_DOM1: 
partial_dead: 
        movl    4(%esp), %edx 
        movl    8(%esp), %eax 
        testl   %eax, %edx 
        je      .L1 
        imull   %eax, %edx 
        movl    data, %eax 
        movl    %edx, (%eax) 
.L1: 
        ret 
 

-- 


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



More information about the Gcc-bugs mailing list