]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid division by zero in fold_loop_internal_call
authorJan Hubicka <jh@suse.cz>
Mon, 14 Aug 2023 15:55:33 +0000 (17:55 +0200)
committerJan Hubicka <jh@suse.cz>
Mon, 14 Aug 2023 15:55:33 +0000 (17:55 +0200)
commit882af290c137dfab5d99b88e6dbecc5e75d85a0b
tree72682d2b9f8422b9706deddfe0064e1db03f18ae
parent7879f589af911ea6a910d08919014b0b2df1b4b1
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.
gcc/tree-cfg.cc