[Bug tree-optimization/19431] missed optimization with ifs and deferencing
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 13 21:43:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-13 21:43 -------
This is what I get with the mainline on ppc-darwin:
_f:
cmpwi cr7,r3,0
stw r4,28(r1)
stw r5,32(r1)
addi r3,r1,28
beq- cr7,L7
lwz r3,0(r3)
blr
L7:
addi r3,r1,32
lwz r3,0(r3)
blr
.align 2
.globl _g
_g:
cmpwi cr7,r3,0
mr r3,r4
bnelr+ cr7
mr r3,r5
blr
Note the stores in the f case but non otherwise.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431
More information about the Gcc-bugs
mailing list