https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98464
--- Comment #6 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:39bd65faee3bafe2dc067e5fedb5079896551a8a commit r11-6442-g39bd65faee3bafe2dc067e5fedb5079896551a8a Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 4 13:02:24 2021 +0100 tree-optimization/98464 - replace loop info with avail at uses This does VN replacement in loop nb_iterations consistent with the rest of the IL by using availability at the definition site of uses. 2021-01-04 Richard Biener <rguent...@suse.de> PR tree-optimization/98464 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ... (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb. (process_bb): Adjust. * g++.dg/opt/pr98464.C: New testcase.