diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2023-07-12 21:23:22 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2023-07-12 23:12:16 -0500 |
commit | 5f03844b32f45224c33dcea08a20b5a2089082f7 (patch) | |
tree | 979f2f7452c85355c9edad3ed0694d2177219b34 /gcc/fortran/dump-parse-tree.cc | |
parent | c4a8f4414215be6bf381398fdb391afd1440c8f9 (diff) | |
download | gcc-5f03844b32f45224c33dcea08a20b5a2089082f7.zip gcc-5f03844b32f45224c33dcea08a20b5a2089082f7.tar.gz gcc-5f03844b32f45224c33dcea08a20b5a2089082f7.tar.bz2 |
vect: Adjust vectorizable_load costing on VMAT_CONTIGUOUS_REVERSE
This patch adjusts the cost handling on
VMAT_CONTIGUOUS_REVERSE in function vectorizable_load. We
don't call function vect_model_load_cost for it any more.
This change makes us not miscount some required vector
permutation as the associated test case shows.
gcc/ChangeLog:
* tree-vect-stmts.cc (vect_model_load_cost): Assert it won't get
VMAT_CONTIGUOUS_REVERSE any more.
(vectorizable_load): Adjust the costing handling on
VMAT_CONTIGUOUS_REVERSE without calling vect_model_load_cost.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/costmodel/ppc/costmodel-vect-reversed.c: New test.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions