https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106498
--- Comment #4 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:c30bbd4d169c98b7535a30384c6a971ee875fa44 commit r13-1926-gc30bbd4d169c98b7535a30384c6a971ee875fa44 Author: Richard Biener <rguent...@suse.de> Date: Tue Aug 2 08:37:16 2022 +0200 tree-optimization/106498 - reduce SSA updates in autopar The following reduces the number of SSA updates done during autopar OMP expansion, specifically avoiding the cases that just add virtual operands (where maybe none have been before) in dead regions of the CFG. Instead virtual SSA update is delayed until after the pass. There's much more TLC needed here, but test coverage makes it really difficult. PR tree-optimization/106498 * omp-expand.cc (expand_omp_taskreg): Do not perform virtual SSA update here. (expand_omp_for): Or here. (execute_expand_omp): Instead schedule it here together with CFG cleanup via TODO.