https://gcc.gnu.org/g:223da6ac40cdd425ae16b787e2ca758ea665b75f

commit r15-4881-g223da6ac40cdd425ae16b787e2ca758ea665b75f
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Oct 31 11:51:16 2024 +0100

    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:
---
 gcc/tree-vect-loop.cc | 1 -
 1 file changed, 1 deletion(-)

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 ();

Reply via email to