From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23264 invoked by alias); 2 Apr 2014 06:17:31 -0000 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 Received: (qmail 23251 invoked by uid 89); 2 Apr 2014 06:17:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 02 Apr 2014 06:17:28 +0000 Received: from ip-95.net-81-220-130.standre.rev.numericable.fr (HELO laptop-mg.local) ([81.220.130.95]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Apr 2014 08:17:25 +0200 Date: Wed, 02 Apr 2014 06:17:00 -0000 From: Marc Glisse Reply-To: gcc-patches@gcc.gnu.org To: Thomas Preud'homme cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH][2/3] Fix PR54733 Optimize endian independent load/store In-Reply-To: <000b01cf4e0e$54044b70$fc0ce250$@arm.com> Message-ID: References: <000b01cf4e0e$54044b70$fc0ce250$@arm.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2014-04/txt/msg00046.txt.bz2 On Wed, 2 Apr 2014, Thomas Preud'homme wrote: > Note that as it stands the patch does not work for arrays indexed with > variable (such a tab[a] || (tab[a+1] << 8)) because fold_const does not > fold (a + 1) - a. Uh? It does fold a+1-a for me. What it doesn't do is look through the definition of b in b-a. Richard+GSoC will supposedly soon provide a function that does that. -- Marc Glisse