This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14824] inlining hurting performance due to non-removing of constant assignments inside loops containing conditionals
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Apr 2004 16:57:25 -0000
- Subject: [Bug optimization/14824] inlining hurting performance due to non-removing of constant assignments inside loops containing conditionals
- References: <20040402150422.14824.niemayer@isg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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