This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/20132] Pessimization of induction variable and missed hoisting opportunity
- From: "phython at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Mar 2005 05:14:17 -0000
- Subject: [Bug tree-optimization/20132] Pessimization of induction variable and missed hoisting opportunity
- References: <20050221235144.20132.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From phython at gcc dot gnu dot org 2005-03-11 05:14 -------
I think this is fixed. This is my tree dump with my patches to 20130 and 15784:
;; Function foo (foo)
foo (length, fmt)
{
int D.1243;
int i;
int D.1225;
<bb 0>:
if (length >= 0) goto <L15>; else goto <L6>;
<L15>:;
i = length;
<L0>:;
switch (*((const char *) (long unsigned int) i + fmt))
{
case 48: goto <L3>;
default : goto <L16>;
}
<L16>:;
D.1225 = 1;
goto <bb 6> (<L17>);
<L3>:;
i = i - 1;
D.1243 = -000000001;
if (i != D.1243) goto <L0>; else goto <L6>;
<L6>:;
D.1225 = 0;
<L17>:;
return D.1225;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20132