diff options
author | Richard Biener <rguenther@suse.de> | 2020-12-10 10:34:32 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-12-10 10:39:53 +0100 |
commit | 154e9b831b6fc7d8493b5b0d56b9c5cdeff968e9 (patch) | |
tree | 48b6335383e0cabebcee8d89ff3414cc7f7c1d5e /gcc/tree-data-ref.c | |
parent | 8d63e3c229f32d441e6ead0cb62923095b54c5f9 (diff) | |
download | gcc-154e9b831b6fc7d8493b5b0d56b9c5cdeff968e9.zip gcc-154e9b831b6fc7d8493b5b0d56b9c5cdeff968e9.tar.gz gcc-154e9b831b6fc7d8493b5b0d56b9c5cdeff968e9.tar.bz2 |
Allow scalar fallback for pattern root stmt
This adjusts the SLP build to allow a pattern root stmt to be
built from scalars. I've noticed this in PR98211 where we fail
to promote a SLP subtree to a simple splat operation and instead
emit a series of uniform vector operations. The bb-slp-div-1.c
testcase is now vectorized on x86_64 but only the store so I
adjusted it to expect the load to be vectorized.
2020-12-10 Richard Biener <rguenther@suse.de>
* tree-vect-slp.c (vect_get_and_check_slp_defs): Do
not mark the defs to occur in a pattern if it is the
pattern root and record the original stmt defs in that
case.
* gcc.dg/vect/bb-slp-div-1.c: Expect the load to be
vectorized.
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions