https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101151
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:8dc3768ffb4debc559e428fd508a4e8c59586c00 commit r11-8654-g8dc3768ffb4debc559e428fd508a4e8c59586c00 Author: Richard Biener <rguent...@suse.de> Date: Tue Jun 22 10:14:02 2021 +0200 tree-optimization/101151 - fix irreducible region check for sinking The check whether two blocks are in the same irreducible region and thus post-dominance checks being unreliable was incomplete since an irreducible region can contain reducible sub-regions but if one block is in the irreducible part and one not the check still doesn't work as expected. 2021-06-22 Richard Biener <rguent...@suse.de> PR tree-optimization/101151 * tree-ssa-sink.c (statement_sink_location): Expand irreducible region check. * gcc.dg/torture/pr101151.c: New testcase. (cherry picked from commit a2ef8395fa970498985764514044e5fd00f7d5c0)