https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110988
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Hubicka <hubi...@gcc.gnu.org>: https://gcc.gnu.org/g:882af290c137dfab5d99b88e6dbecc5e75d85a0b commit r14-3201-g882af290c137dfab5d99b88e6dbecc5e75d85a0b Author: Jan Hubicka <j...@suse.cz> Date: Mon Aug 14 17:55:33 2023 +0200 Avoid division by zero in fold_loop_internal_call My patch to fix profile after folding internal call is missing check for the case profile was already zero before if-conversion. gcc/ChangeLog: PR gcov-profile/110988 * tree-cfg.cc (fold_loop_internal_call): Avoid division by zero.