]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make inliner loop hints more agressive
authorJan Hubicka <hubicka@ucw.cz>
Thu, 3 Jul 2025 10:00:05 +0000 (12:00 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Thu, 3 Jul 2025 10:00:05 +0000 (12:00 +0200)
commitd52b0327a17f5ed12038bd83002627aac5b4b944
tree07da8675bc6704fad3454f7833e8d8e65db280db
parenta52484f1ac34dbb604dc862407d9abb32df444dd
Make inliner loop hints more agressive

This patch makes loop inline hints more agressive.  If we know iteration
count or stride, we currently assume improvement in time relative to
preheader count.  I changed it to header count, since this knowledge
is supposed to likely help unrolling and vectorizing which brings
benefits relative to that.

* ipa-fnsummary.cc (analyze_function_body): For loop
heuristics use header count instead of preheader count.
gcc/ipa-fnsummary.cc