This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/7270] Redundant compares not eliminated on x86.
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2003 02:29:20 -0000
- Subject: [Bug optimization/7270] Redundant compares not eliminated on x86.
- References: <20020710224600.7270.anamax@earthlink.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7270
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |SUSPENDED
------- Additional Comments From pinskia@physics.uc.edu 2003-06-05 02:29 -------
This still exists on the tree-ssa branch it converts the function to
foo (a)
{
unsigned int T.1;
unsigned int * T.2;
unsigned int * T.3;
unsigned int T.4;
{
unsigned int i;
while (1)
{
T.3 = a;
T.4 = *T.3;
if (T.4 == 0)
{
return 9;
}
else
{
return 15;
}
}
}
}
So it looks like it is really fixed on the tree-ssa branch (it gets rid of the loop also).
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.