]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Enable gather/scatter for epilogues of vector epilogues
authorRichard Biener <rguenther@suse.de>
Wed, 30 Jul 2025 13:38:03 +0000 (15:38 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Aug 2025 06:53:23 +0000 (08:53 +0200)
The restriction no longer applies, so remove it.

* tree-vect-data-refs.cc (vect_check_gather_scatter):
Remove restriction on epilogue of epilogue vectorization.

gcc/tree-vect-data-refs.cc

index 4cfd1a301c2b1e343653afae9b26ec04e5310e89..f9bf6a2169706a5b4ca02f823d911b08ad6de785 100644 (file)
@@ -4597,13 +4597,6 @@ vect_check_gather_scatter (stmt_vec_info stmt_info, loop_vec_info loop_vinfo,
       masked_p = (ifn == IFN_MASK_LOAD || ifn == IFN_MASK_STORE);
     }
 
-  /* ???  For epilogues we adjust DR_REF to make the following stmt-based
-     analysis work, but this adjustment doesn't work for epilogues of
-     epilogues during transform, so disable gather/scatter in that case.  */
-  if (LOOP_VINFO_EPILOGUE_P (loop_vinfo)
-      && LOOP_VINFO_EPILOGUE_P (LOOP_VINFO_ORIG_LOOP_INFO (loop_vinfo)))
-    return false;
-
   /* True if we should aim to use internal functions rather than
      built-in functions.  */
   bool use_ifn_p = (DR_IS_READ (dr)