From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10704 invoked by alias); 26 Feb 2010 19:06:53 -0000 Received: (qmail 10576 invoked by uid 48); 26 Feb 2010 19:06:41 -0000 Date: Fri, 26 Feb 2010 19:06:00 -0000 Message-ID: <20100226190641.10575.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43182] GCC does not pull out a[0] from loop that changes a[i] for i:[1,n] In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "changpeng dot fang at amd dot com" 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: 2010-02/txt/msg02715.txt.bz2 ------- Comment #6 from changpeng dot fang at amd dot com 2010-02-26 19:06 ------- > > Actually it is a totally different case. Please file a new bug with that case; > though there might already be a bug about that one. > I could not see the difference even though j is not a compile-time constant. (it is an invariant to the innermost loop). I can say: GCC does not pull out a[j] from loop that changes a[i] for i:[j+1,n] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43182