From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14034 invoked by alias); 14 Nov 2006 01:06:10 -0000 Received: (qmail 14009 invoked by uid 48); 14 Nov 2006 01:06:00 -0000 Date: Tue, 14 Nov 2006 01:06:00 -0000 Message-ID: <20061114010600.14008.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/29751] not optimizing access a[0] , a[1] 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-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg01196.txt.bz2 List-Id: ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-14 01:06 ------- This is a problem of our VOPs not having base+offset and has nothing to do with restrict. int f(int *r) { r[0] = 0; r[1] = 0; if(r[0]) foo(); } is enough to reproduce the issue. Also I think there might be a couple dups of this with respect of structs instead. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Missed optimization of |not optimizing access a[0] , |restrict pointer assigned |a[1] |value | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29751