This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14792] [tree-ssa] cast elimination opportunity involving an AND
- 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: 31 Mar 2004 05:40:24 -0000
- Subject: [Bug optimization/14792] [tree-ssa] cast elimination opportunity involving an AND
- References: <20040331025513.14792.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-31 05:40 -------
On PPC here is why this code is not optimial:
_foo:
lbz r4,0(r3)
extsb r0,r4 <--- extra extends byte
rlwinm r2,r0,0,31,31 <-- as this is just an and 1 (trust me)
cmpwi cr7,r2,0
beqlr- cr7
bnelr- cr7
b _link_error
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792