aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-format-json.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-09-18 12:41:25 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-09-19 16:26:28 +0200
commit77bd23a3e247555ba427d01af8e5713934be8d5b (patch)
treee6c1df8f2e40f68e6687b583fb60ade8f4b1c4bb /gcc/diagnostic-format-json.cc
parentd3a7302ec5985abcda561886cc724d388c7143cb (diff)
downloadgcc-77bd23a3e247555ba427d01af8e5713934be8d5b.zip
gcc-77bd23a3e247555ba427d01af8e5713934be8d5b.tar.gz
gcc-77bd23a3e247555ba427d01af8e5713934be8d5b.tar.bz2
Fall back to single-lane SLP before falling back to no SLP
The following changes the fallback to disable SLP when any of the discovered SLP instances failed to pass vectorization checking into a fallback that emulates what no SLP would do with SLP - force single-lane discovery for all instances. The patch does not remove the final fallback to disable SLP but it reduces the fallout from failing vectorization when any non-SLP stmt survives analysis. * tree-vectorizer.h (vect_analyze_slp): Add force_single_lane parameter. * tree-vect-slp.cc (vect_analyze_slp_instance): Remove defaulting of force_single_lane. (vect_build_slp_instance): Likewise. Pass down appropriate force_single_lane. (vect_analyze_slp): Add force_sigle_lane parameter and pass it down appropriately. (vect_slp_analyze_bb_1): Always do multi-lane SLP. * tree-vect-loop.cc (vect_analyze_loop_2): Track two SLP modes and adjust accordingly. (vect_analyze_loop_1): Save the SLP mode when unrolling. * gcc.dg/vect/vect-outer-slp-1.c: Adjust.
Diffstat (limited to 'gcc/diagnostic-format-json.cc')
0 files changed, 0 insertions, 0 deletions