From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24326 invoked by alias); 18 Mar 2010 18:38:53 -0000 Received: (qmail 24273 invoked by uid 48); 18 Mar 2010 18:38:42 -0000 Date: Thu, 18 Mar 2010 18:38:00 -0000 Message-ID: <20100318183842.24272.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/43423] gcc should vectorize this loop through "iteration range splitting" 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: 2010-03/txt/msg01758.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-18 18:38 ------- (In reply to comment #3) > Subject: Re: gcc should vectorize this loop > through "iteration range splitting" > You mean that the problem is the if-conversion of the stores > "a[i] = ..." If we rewrite the code like: int a[100], b[100], c[100]; void foo(int n, int mid) { int i; for(i=0; i