https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110649
--- Comment #10 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:c62791fa413a49fc6476ce186b324250f8ae6d40 commit r14-2545-gc62791fa413a49fc6476ce186b324250f8ae6d40 Author: Jan Hubicka <j...@suse.cz> Date: Sun Jul 16 23:55:14 2023 +0200 Fix optimize_mask_stores profile update While looking into sphinx3 regression I noticed that vectorizer produces BBs with overall probability count 120%. This patch fixes it. Richi, I don't know how to create a testcase, but having one would be nice. Bootstrapped/regtested x86_64-linux, will commit it shortly. gcc/ChangeLog: PR tree-optimization/110649 * tree-vect-loop.cc (optimize_mask_stores): Set correctly probability of the if-then-else construct.