diff options
author | Richard Biener <rguenther@suse.de> | 2023-11-09 11:30:22 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-13 14:55:16 +0200 |
commit | 8a9b159a86081053289be0c44339623ff59717a2 (patch) | |
tree | 3cef765f7acdc6ca3d3b329ada74f06c5bdfd988 /gcc | |
parent | c4af8ebdb0318b5e9ed3dfdea5501a3260f3acea (diff) | |
download | gcc-8a9b159a86081053289be0c44339623ff59717a2.zip gcc-8a9b159a86081053289be0c44339623ff59717a2.tar.gz gcc-8a9b159a86081053289be0c44339623ff59717a2.tar.bz2 |
PR60276 fix for single-lane SLP
When enabling single-lane SLP and not splitting groups the fix for
PR60276 is no longer effective since it for unknown reason exempted
pure SLP. The following removes this exemption, making
gcc.dg/vect/pr60276.c PASS even with --param vect-single-lane-slp=1
PR tree-optimization/60276
* tree-vect-stmts.cc (vectorizable_load): Do not exempt
pure_slp grouped loads from the STMT_VINFO_MIN_NEG_DIST
restriction.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-vect-stmts.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 21e8fe9..b8a7160 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -9995,8 +9995,7 @@ vectorizable_load (vec_info *vinfo, /* Invalidate assumptions made by dependence analysis when vectorization on the unrolled body effectively re-orders stmts. */ - if (!PURE_SLP_STMT (stmt_info) - && STMT_VINFO_MIN_NEG_DIST (stmt_info) != 0 + if (STMT_VINFO_MIN_NEG_DIST (stmt_info) != 0 && maybe_gt (LOOP_VINFO_VECT_FACTOR (loop_vinfo), STMT_VINFO_MIN_NEG_DIST (stmt_info))) { |