This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/36693] missed optimization for pointer access with offset on powerpc
- 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: 11 Aug 2008 01:31:24 -0000
- Subject: [Bug rtl-optimization/36693] missed optimization for pointer access with offset on powerpc
- References: <bug-36693-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-11 01:31 -------
Hmm, this works on the trunk with -O2 -mtune=cell which means this is a
scheduling issue:
[apinski@dhcp-10-98-10-216 ~]$ ~/gcc-mainline/bin/gcc -O2 -o - -S t.c
-mtune=cell
.file "t.c"
.section ".text"
.align 2
.p2align 3,,7
.globl get_and_increment1
.type get_and_increment1, @function
get_and_increment1:
lwz 9,0(3)
addi 0,9,4
stw 0,0(3)
lwz 3,0(9)
blr
.size get_and_increment1,.-get_and_increment1
.align 2
.p2align 3,,7
.globl get_and_increment2
.type get_and_increment2, @function
get_and_increment2:
lwz 9,0(3)
addi 0,9,4
stw 0,0(3)
lwz 3,0(9)
blr
.size get_and_increment2,.-get_and_increment2
.ident "GCC: (GNU) 4.4.0 20080810 (experimental) [trunk revision
138922]"
.section .note.GNU-stack,"",@progbits
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |rtl-optimization
GCC host triplet|x86_64-pc-linux-gnu |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36693