diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2014-10-31 11:55:07 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2014-10-31 11:55:07 +0000 |
commit | c6e3a931201a2ce47ede92668870388df4f25219 (patch) | |
tree | c8d332a3425f18aaecef6c4864fecfd21349ed66 /gcc/tree-inline.c | |
parent | aed24d9d740b854c8048d58b9a768a100a25868f (diff) | |
download | gcc-c6e3a931201a2ce47ede92668870388df4f25219.zip gcc-c6e3a931201a2ce47ede92668870388df4f25219.tar.gz gcc-c6e3a931201a2ce47ede92668870388df4f25219.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions