[Bug optimization/15017] [tree-ssa] compare (equal) with casts are not removed

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 20 02:25:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-20 01:16 -------
Here is an example which messes up on powerpc (lha is slower than lhz):
static short as, bs;
_Bool foo3 (void) {
int as1 = as;
int bs1 = bs;
if (as1 != bs1) return 1;
else  return 0;
}

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15017



More information about the Gcc-bugs mailing list