aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-01-05 16:16:06 +0100
committerJakub Jelinek <jakub@redhat.com>2021-01-05 16:16:06 +0100
commita7553ad60bebc419d510564b8b9f9e5e03725ff5 (patch)
tree95629feb493724078551a23567e7dbbb69fc61e3 /gcc/tree-ssa-reassoc.c
parentf70289378721d970ea1cfc39a30565f88cedc788 (diff)
downloadgcc-a7553ad60bebc419d510564b8b9f9e5e03725ff5.zip
gcc-a7553ad60bebc419d510564b8b9f9e5e03725ff5.tar.gz
gcc-a7553ad60bebc419d510564b8b9f9e5e03725ff5.tar.bz2
store-merging: Handle vector CONSTRUCTORs using bswap [PR96239]
I've tried to add such helper, but handling over just analysis and letting each pass handle it differently seems complicated given the limitations of the bswap infrastructure. So, this patch just hooks the optimization also into store-merging so that the original testcase from the PR can be fixed. 2021-01-05 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/96239 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New function. (get_status_for_store_merging): Don't return BB_INVALID for blocks with potential bswap optimizable CONSTRUCTORs. (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap if possible. * gcc.dg/tree-ssa/pr96239.c: New test.
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
0 files changed, 0 insertions, 0 deletions