[Bug tree-optimization/14341] Missed comparision optimization (jump threading related)
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Mon Jan 31 14:03:00 GMT 2005
------- Additional Comments From kazu at cs dot umass dot edu 2005-01-31 14:03 -------
The first two cases are optimized as expected.
The third one is wrong. Here is mostly likely what Andrew Pinski meant to say.
void
t2 ()
{
int i;
int x;
for (i = 0; i < 100000000; i++)
{
int t = (
{
int j = i;
if (j < 100000000)
j = 1;
else
j = 0;
j;
}
);
f (t);
}
}
which is again optimized as optimized.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14341
More information about the Gcc-bugs
mailing list