]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Preserve ->move_dr behavior when adjusting epilogue info
authorRichard Biener <rguenther@suse.de>
Thu, 31 Oct 2024 10:51:16 +0000 (11:51 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Nov 2024 11:24:42 +0000 (12:24 +0100)
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.

gcc/tree-vect-loop.cc

index 7ed3a56bc68031ab74ffe55cc055b3d54a90337b..dd18ec9ff1757f836d2a8c46be0dba9aecee474f 100644 (file)
@@ -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 ();