From: Richard Biener Date: Thu, 31 Oct 2024 10:51:16 +0000 (+0100) Subject: Preserve ->move_dr behavior when adjusting epilogue info X-Git-Tag: basepoints/gcc-16~4672 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223da6ac40cdd425ae16b787e2ca758ea665b75f;p=thirdparty%2Fgcc.git Preserve ->move_dr behavior when adjusting epilogue info When update_epilogue_loop_vinfo relates the shared loop DRs with the epilogue stmts and infos it should not fiddle with how pattern recognition applied move_dr. * tree-vect-loop.cc (update_epilogue_loop_vinfo): A DRs main stmt vinfo dr_aux should refer to a pattern stmt which is how move_dr sets this up. We shouldn't undo this. --- diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 7ed3a56bc680..dd18ec9ff175 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -12291,7 +12291,6 @@ update_epilogue_loop_vinfo (class loop *epilogue, tree advance) &find_in_mapping, &mapping); } DR_STMT (dr) = STMT_VINFO_STMT (stmt_vinfo); - stmt_vinfo->dr_aux.stmt = stmt_vinfo; } epilogue_vinfo->shared->datarefs_copy.release ();