]> git.ipfire.org Git - thirdparty/gcc.git/commit
Propagate unlikely executed BBs even on measured profiles
authorJan Hubicka <hubicka@ucw.cz>
Wed, 1 Oct 2025 14:51:26 +0000 (16:51 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Wed, 1 Oct 2025 14:51:26 +0000 (16:51 +0200)
commitbae9c5e7c6efc0cbed9ea98c4c58bf7ed341f68d
treeadc13821f0b170da506fc57156e25e2dd71e600d
parent39b810b095343df8f0420b3ad7e7469dac0454f8
Propagate unlikely executed BBs even on measured profiles

While looking into AutoFDO porfiles I noticed that sometimes we lost
precise zero counts due to inlining and merging basic blocks.  Propagating
precise zero counts should be safe even for measured profiles and thus
this patch enables it.

gcc/ChangeLog:

* predict.cc (unlikely_executed_stmt_p): Remove redundant check.
(rebuild_frequencies): Also recompute unlikely bbs when profile is
present or consistent.
gcc/predict.cc