This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/54733] Missing opportunity to optimize endian independent load/store


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54733

--- Comment #3 from thopre01 at gcc dot gnu.org ---
Author: thopre01
Date: Fri May 23 03:33:28 2014
New Revision: 210843

URL: http://gcc.gnu.org/viewcvs?rev=210843&root=gcc&view=rev
Log:
2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    PR tree-optimization/54733
gcc/
    * 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
    * 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.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/bswap-2.c
    trunk/gcc/testsuite/gcc.dg/optimize-bswapdi-3.c
    trunk/gcc/testsuite/gcc.dg/optimize-bswaphi-1.c
    trunk/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-math-opts.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]