[Bug optimization/14824] inlining hurting performance due to non-removing of constant assignments inside loops containing conditionals

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Apr 2 16:57:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-02 16:57 -------
It is already fixed on the tree-ssa:
#APP
        testlabel1: 
#NO_APP
        xorl    %eax, %eax  <--- this is here because z was uninitialized in your example for some cases.
        testl   %edx, %edx
        jle     .L7
        .p2align 4,,15
.L8:
        incl    %eax
        cmpl    %edx, %eax
        jl      .L8
        movl    $4, %eax
.L7:
#APP
        testlabel2: 
#NO_APP

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED
      Known to fail|                            |3.5.0
      Known to work|                            |tree-ssa


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



More information about the Gcc-bugs mailing list