This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16799] PowerPC - load reuse opportunity
- 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: 28 Oct 2004 04:28:02 -0000
- Subject: [Bug tree-optimization/16799] PowerPC - load reuse opportunity
- References: <20040728170038.16799.steinmtz@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 04:27 -------
Fixed on the mainline (note this is powerp64-darwin but should represent powerpc64-linux closely):
_foo:
lwz r0,0(r3)
.align32 4,0x60000000
L2:
subf r9,r0,r3
lwz r0,0(r9)
mr r3,r9
cmpdi cr7,r0,0
beq cr7,L2
lis r2,ha16(L_q$non_lazy_ptr)
ld r2,lo16(L_q$non_lazy_ptr)(r2)
std r9,0(r2)
blr
.comm _q,8
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16799