[Bug tree-optimization/27441] VAR - 1 not identified as the same as VAR + -1
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri May 5 02:44:00 GMT 2006
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-05 02:44 -------
Here is a testcase:
int f(int i, int t)
{
if ((i + -1) != t)
return 4;
return i - 1;
}
-------
The RTL level PRE catches this though.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Keywords| |missed-optimization, TREE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27441
More information about the Gcc-bugs
mailing list