https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96514
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:6178c27b4bbea186305ecbfeb4b9939dece75a9d commit r9-9086-g6178c27b4bbea186305ecbfeb4b9939dece75a9d Author: Richard Biener <rguent...@suse.de> Date: Fri Aug 7 10:16:05 2020 +0200 tree-optimization/96514 - avoid if-converting control-altering calls This avoids if-converting when encountering control-altering calls. 2020-08-07 Richard Biener <rguent...@suse.de> PR tree-optimization/96514 * tree-if-conv.c (if_convertible_bb_p): If the last stmt is a call that is control-altering, fail. * gcc.dg/pr96514.c: New testcase. (cherry picked from commit c3f94f5786a014515c09c7852db228c74adf51e5)