https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99024
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d997565c41a8a5783bf076437208f38d8ea39ced commit r11-7165-gd997565c41a8a5783bf076437208f38d8ea39ced Author: Richard Biener <rguent...@suse.de> Date: Wed Feb 10 09:06:26 2021 +0100 tree-optimization/99024 - fix leak in loop vect analysis When we analyzed a loop as epilogue but later in peeling decide we're not going to use it then in the DTOR we clear the original loops ->aux which causes us to leak the main loop vinfo. Fixed by only clearing aux if it is associated with the vinfo we're destroying. 2021-02-10 Richard Biener <rguent...@suse.de> PR tree-optimization/99024 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only clear loop->aux if it is associated with the destroyed loop_vinfo.