From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2983 invoked by alias); 8 May 2007 20:31:12 -0000 Received: (qmail 2871 invoked by alias); 8 May 2007 20:31:00 -0000 Date: Tue, 08 May 2007 20:31:00 -0000 Message-ID: <20070508203100.2870.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/25371] -ftree-vectorize results in internal compiler error on AMD64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "Jan dot Sjodin 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: 2007-05/txt/msg00636.txt.bz2 ------- Comment #8 from Jan dot Sjodin at amd dot com 2007-05-08 21:30 ------- Subject: RE: -ftree-vectorize results in internal compiler error on AMD64 I would prefer to make it work instead of disabling the vectorizer for these cases. - Jan > -----Original Message----- > From: sebpop@gmail.com [mailto:sebpop@gmail.com] On Behalf Of Sebastian > Pop > Sent: Tuesday, May 08, 2007 3:19 PM > To: gcc-bugzilla@gcc.gnu.org > Cc: Sjodin, Jan > Subject: Re: [Bug tree-optimization/25371] -ftree-vectorize results in > internal compiler error on AMD64 > > On 5/8/07, Sjodin, Jan wrote: > > > Okay, I looked at the code, and the problem is that we have to pass to > > > force_gimple_operand an expression that is not a chain of recurrence, > > > ie. a real expression that can be used to be decomposed in 3 addr code > > > by the gimplifier. > > > > Thanks! That was the answer I was looking for. Sounds like the > > vectorizer is biting off more than it can chew :) Perhaps there is a > > check missing for chrecs somewhere. > > Yes, I also think that the quick fix is to add to the vectorizer the > missing > checks for simple enough expressions. > > I went back to look at the testcase, and I saw these nested loops, > and we are trying to vectorize the innermost ones. So for avoiding a > failed vectorization, and making the vectorizer to produce the right code, > we want to generate some code for the base address in the outer loop. > > Sebastian > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25371