re PR tree-optimization/63259 (Detecting byteswap sequence)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 31 Oct 2014 11:55:07 +0000 (11:55 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 31 Oct 2014 11:55:07 +0000 (11:55 +0000)
commitc6e3a931201a2ce47ede92668870388df4f25219
treec8d332a3425f18aaecef6c4864fecfd21349ed66
parentaed24d9d740b854c8048d58b9a768a100a25868f
re PR tree-optimization/63259 (Detecting byteswap sequence)

2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR tree-optimization/63259
    * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
    rotation left if it is a 16 bit byte swap.
    (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
    and RROTATE_EXPR statements if it is a byte rotation.

    gcc/testsuite/
    PR tree-optimization/63259
    * optimize-bswapsi-1.c (swap32_f): New bswap pass test.
    * optimize-bswaphi-1.c: Drop useless SIType definition and fix typo in
    following comment.

From-SVN: r216971
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/optimize-bswaphi-1.c
gcc/testsuite/gcc.dg/optimize-bswapsi-1.c
gcc/tree-ssa-math-opts.c