From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25494 invoked by alias); 14 Feb 2008 15:45:18 -0000 Received: (qmail 25485 invoked by uid 22791); 14 Feb 2008 15:45:17 -0000 X-Spam-Check-By: sourceware.org Received: from nikam-dmz.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Feb 2008 15:44:50 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 29025) id C73825BB4B; Thu, 14 Feb 2008 16:44:47 +0100 (CET) Date: Thu, 14 Feb 2008 16:44:00 -0000 From: Zdenek Dvorak To: Christian BRUEL Cc: gcc-patches@gcc.gnu.org Subject: Re: [PING][patch,loopiv] misaligned packed array memory access Message-ID: <20080214154447.GA31590@kam.mff.cuni.cz> References: <47B2F979.30608@st.com> <20080213195614.GA29383@kam.mff.cuni.cz> <47B3E6BF.8010908@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47B3E6BF.8010908@st.com> User-Agent: Mutt/1.5.9i Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00503.txt.bz2 Hi, > * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check iv offset. > * (loop_offset_multiple_of): New function. fix the changelog formating. > +/* Returns true if OFFSET is always a multiple of alignment AL > + even if loop carried. */ > + > +static bool > +loop_offset_multiple_of (struct ivopts_data *data, tree offset, tree al) instead of this, it would perhaps be simpler to just add constant_multiple_of check for the step of the induction variable (after it is computed in find_interesting_uses_address)? Zdenek