diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 09:52:30 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 09:52:30 +0000 |
commit | 8af3f53d325fe4a6b1f3da64dc02d10978b9a116 (patch) | |
tree | 216e2715a85af701255c8a76cda849bb6a351d2e /gcc/tree-vrp.c | |
parent | 32ede1083fad4b68873bec3e5a775e2092d6566e (diff) | |
download | gcc-8af3f53d325fe4a6b1f3da64dc02d10978b9a116.zip gcc-8af3f53d325fe4a6b1f3da64dc02d10978b9a116.tar.gz gcc-8af3f53d325fe4a6b1f3da64dc02d10978b9a116.tar.bz2 |
vect: Support masked gather loads with SLP
This patch extends the previous SLP gather load support so
that it can handle masked loads too.
gcc/
* tree-vect-slp.c (arg1_arg4_map): New variable.
(vect_get_operand_map): Handle IFN_MASK_GATHER_LOAD.
(vect_build_slp_tree_1): Likewise.
(vect_build_slp_tree_2): Likewise.
* tree-vect-stmts.c (vectorizable_load): Expect the mask to be
the last SLP child node rather than the first.
gcc/testsuite/
* gcc.dg/vect/vect-gather-3.c: New test.
* gcc.dg/vect/vect-gather-4.c: Likewise.
* gcc.target/aarch64/sve/mask_gather_load_8.c: Likewise.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions