[PATCH][3/3] Fix PR54733 Optimize endian independent load/store
Thomas Preud'homme
thomas.preudhomme@arm.com
Wed Apr 2 00:56:00 GMT 2014
Here is the third and last patch in the series. Its purpose is to add support
for bitwise operation from a source operand that are equivalent to a load
in the target's endianness.
The ChangeLog are as follows:
*** gcc/ChangeLog ***
2014-04-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR tree-optimization/54733
* tree-ssa-math-opts.c (find_bswap_1): Renamed to ...
(find_bswap_or_nop_1): This.
(find_bswap): Renamed to ...
(find_bswap_or_nop): This. Also add detection of bitwise operations
equivalent to load in host endianness.
(execute_optimize_bswap): Likewise.
*** gcc/testsuite/ChangeLog ***
2014-04-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR tree-optimization/54733
* gcc.dg/optimize-bswapdi-3.c: Extend test to check detection of
bitwise operation equivalent to load in host endianness.
* gcc.dg/optimize-bswaphi-1.c: Likewise.
* gcc.dg/optimize-bswapsi-2.c: Likewise.
Is this ok for stage 1?
Best regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc32rm-84.3.part3.diff
Type: application/octet-stream
Size: 12491 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140402/9bc73c7a/attachment.obj>
More information about the Gcc-patches
mailing list