From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7416 invoked by alias); 11 Aug 2008 01:32:44 -0000 Received: (qmail 7053 invoked by uid 48); 11 Aug 2008 01:31:24 -0000 Date: Mon, 11 Aug 2008 01:32:00 -0000 Message-ID: <20080811013124.7052.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/36693] missed optimization for pointer access with offset on powerpc In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00782.txt.bz2 ------- 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