This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/26479] suboptimal register allocation for return register
- 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: 3 Mar 2006 18:56:14 -0000
- Subject: [Bug rtl-optimization/26479] suboptimal register allocation for return register
- References: <bug-26479-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-03 18:56 -------
With -O2:
L4:
addi r1,r1,128
mr r3,r2
ld r0,16(r1)
ld r31,-8(r1)
mtlr r0
blr
With -O2 -fno-if-conversion:
L4:
addi r1,r1,128
ld r0,16(r1)
ld r31,-8(r1)
mtlr r0
blr
I have not looked enough into the RTL to figure out why this is going wrong.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ra
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26479