From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27470 invoked by alias); 22 May 2014 10:07:36 -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 27454 invoked by uid 89); 22 May 2014 10:07:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f173.google.com Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com) (74.125.82.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 22 May 2014 10:07:35 +0000 Received: by mail-we0-f173.google.com with SMTP id u57so3269210wes.32 for ; Thu, 22 May 2014 03:07:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.161.168 with SMTP id xt8mr49417175wjb.35.1400753252034; Thu, 22 May 2014 03:07:32 -0700 (PDT) Received: by 10.194.119.193 with HTTP; Thu, 22 May 2014 03:07:31 -0700 (PDT) In-Reply-To: <000101cf7490$102c11f0$308435d0$@arm.com> References: <006f01cf6b71$1cf10df0$56d329d0$@arm.com> <000001cf70ee$9aa2ed90$cfe8c8b0$@arm.com> <000801cf73d5$be55b530$3b011f90$@arm.com> <000001cf7416$52f0f7a0$f8d2e6e0$@arm.com> <000101cf7490$102c11f0$308435d0$@arm.com> Date: Thu, 22 May 2014 10:07:00 -0000 Message-ID: Subject: Re: [PATCH] Fix PR54733 Optimize endian independent load/store From: Richard Biener To: "Thomas Preud'homme" Cc: GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg01850.txt.bz2 On Wed, May 21, 2014 at 3:00 AM, Thomas Preud'homme wrote: >> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches- >> >> I'll send the new patch as soon as all the tests are done. > > Here you are. I also simplified the tests a bit having the reference as a function > parameter instead of a local one. > > Updated ChangeLogs: > > *** gcc/ChangeLog *** > > 2014-05-20 Thomas Preud'homme > > PR tree-optimization/54733 > * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure. > (CMPNOP): Define. > (find_bswap_or_nop_load): New. > (find_bswap_1): Renamed to ... > (find_bswap_or_nop_1): This. Also add support for memory source. > (find_bswap): Renamed to ... > (find_bswap_or_nop): This. Also add support for memory source and > detection of bitwise operations equivalent to load in host endianness. > (execute_optimize_bswap): Likewise. Also move its leading comment back > in place and split statement transformation into ... > (bswap_replace): This. > > *** gcc/testsuite/ChangeLog *** > > 2014-05-20 Thomas Preud'homme > > PR tree-optimization/54733 > * gcc.dg/optimize-bswapdi-3.c: New test to check extension of bswap > optimization to support memory sources and bitwise operations > equivalent to load in host endianness. > * gcc.dg/optimize-bswaphi-1.c: Likewise. > * gcc.dg/optimize-bswapsi-2.c: Likewise. > * gcc.c-torture/execute/bswap-2.c: Likewise. > > Best regards, This is ok. Thanks, Richard. > Thomas