]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix optimize_mask_stores profile update
authorJan Hubicka <jh@suse.cz>
Sun, 16 Jul 2023 21:55:14 +0000 (23:55 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 16 Jul 2023 21:55:14 +0000 (23:55 +0200)
commitc62791fa413a49fc6476ce186b324250f8ae6d40
tree81610bd4d94290e37ad0952945883d67a1c18383
parent1d203d4c90adb064edfa9680768d1f83a41f17e0
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.
gcc/tree-vect-loop.cc