From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12238 invoked by alias); 16 Jul 2006 13:21:26 -0000 Received: (qmail 12183 invoked by uid 48); 16 Jul 2006 13:21:18 -0000 Date: Sun, 16 Jul 2006 13:21:00 -0000 Message-ID: <20060716132118.12182.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/20643] [4.0/4.1/4.2 Regression] Tree loop optimizer does worse job than RTL loop optimizer In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anemo at mba dot ocn dot ne dot jp" 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-07/txt/msg01167.txt.bz2 List-Id: ------- Comment #11 from anemo at mba dot ocn dot ne dot jp 2006-07-16 13:21 ------- I have a similer optimization problem with this tiny function. void foo(int *a) { int i; for (i = 0; i < 100; i++) a[0] += a[1]; } All gcc 4.x I tried generate load and store in inner loop. On http://gcc.gnu.org/ml/gcc/2006-07/msg00282.html, I posted some results. Is this a same probelm? If not, I should file another bug report. Thank you. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20643