This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15017] [tree-ssa] compare (equal) with casts are not removed
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2004 01:16:59 -0000
- Subject: [Bug optimization/15017] [tree-ssa] compare (equal) with casts are not removed
- References: <20040420010538.15017.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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