From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13688 invoked by alias); 5 Jun 2003 15:35:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13624 invoked by uid 48); 5 Jun 2003 15:35:30 -0000 Date: Thu, 05 Jun 2003 15:35:00 -0000 Message-ID: <20030605153530.13623.qmail@sources.redhat.com> From: "pinskia@physics.uc.edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030428220601.10528.have@ann.jussieu.fr> References: <20030428220601.10528.have@ann.jussieu.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/10528] Unexpected loop un-optimization when removing a field of a class X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00694.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10528 pinskia@physics.uc.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2003-06-05 15:35:30 date| | ------- Additional Comments From pinskia@physics.uc.edu 2003-06-05 15:35 ------- It is still happens on the mainline (20030604) but it infacts adds an extra load on the one with the optimization field that is not need. It removes a jump though so the mainline will be faster than 3.3 because of that. without the optimization field: .L18: addl (%eax), %ecx #, c addl $4, %eax #, tmp108 movl %eax, 4(%ebx) # tmp108, ._M_current .L5: movl 4(%ebx), %eax #, tmp96 cmpl %edx, %eax # ._M_finish, tmp96 jne .L18 #, with the optimization field .L18: movl (%eax), %edx #* ._M_start, <-- extra load addl $4, %eax #, ._M_start addl %edx, %ebx #, c .L5: cmpl %ecx, %eax # ._M_finish, ._M_start jne .L18 #, ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.