[Bug optimization/14627] [tree-ssa] extra assignment inserted
steven at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 23 16:07:00 GMT 2004
------- Additional Comments From steven at gcc dot gnu dot org 2004-03-23 16:07 -------
This way it's a bit smaller:
int foo (int *a, int b)
{
int i;
int one_valid = 0;
for (i = 0; i < 10; i++)
{
if (*a && b)
goto done;
else
if (!one_valid && *a)
one_valid = 1;
}
done:
return one_valid;
}
When you replace "int *a" with just "int a", the extra assignment isn't there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14627
More information about the Gcc-bugs
mailing list