]> git.ipfire.org Git - thirdparty/gcc.git/commit
One extra special case for AFDO0
authorJan Hubicka <jh@suse.cz>
Sun, 21 Sep 2025 17:51:57 +0000 (19:51 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 21 Sep 2025 17:55:16 +0000 (19:55 +0200)
commitd74aec06b106e0c42e3210bddeb02a5512f4d382
tree93d8cd415f9ed8e8624dac424d1d24714b218df3
parent5cef5f2bf8458197f694fb6991c96ae287832d60
One extra special case for AFDO0

This patch makes inliner and ipa-cp to consider optimization interesting even
in scenarios where aufdo countis 0, but scaleis high enough to make optimization
worthwhile.

gcc/ChangeLog:

* cgraph.cc (cgraph_edge::maybe_hot_p): For AFDO profiles force
count to be non-zero.
gcc/cgraph.cc