diff options
author | Cui,Lili <lili.cui@intel.com> | 2022-11-01 09:16:49 +0800 |
---|---|---|
committer | Cui,Lili <lili.cui@intel.com> | 2022-11-01 09:21:40 +0800 |
commit | 1b9a5cc9ec08e9f239dd2096edcc447b7a72f64a (patch) | |
tree | 6d10a8f8c270c9b465feecfc738898dcf653454f /gcc/gimple-array-bounds.h | |
parent | 9a8b868d7a3e0c4e754a3c2f21c524fec4a6b0ab (diff) | |
download | gcc-1b9a5cc9ec08e9f239dd2096edcc447b7a72f64a.zip gcc-1b9a5cc9ec08e9f239dd2096edcc447b7a72f64a.tar.gz gcc-1b9a5cc9ec08e9f239dd2096edcc447b7a72f64a.tar.bz2 |
Add attribute hot judgement for INLINE_HINT_known_hot hint.
We set up INLINE_HINT_known_hot hint only when we have profile feedback,
now add function attribute judgement for it, when both caller and callee
have __attribute__((hot)), we will also set up INLINE_HINT_known_hot hint
for it.
With this patch applied,
ADL Multi-copy: 538.imagic_r 16.7%
ICX Multi-copy: 538.imagic_r 15.2%
CLX Multi-copy: 538.imagic_r 12.7%
Znver3 Multi-copy: 538.imagic_r 10.6%
Arm Multi-copy: 538.imagic_r 13.4%
gcc/ChangeLog
* ipa-inline-analysis.cc (do_estimate_edge_time): Add function attribute
judgement for INLINE_HINT_known_hot hint.
gcc/testsuite/ChangeLog:
* gcc.dg/ipa/inlinehint-6.c: New test.
Diffstat (limited to 'gcc/gimple-array-bounds.h')
0 files changed, 0 insertions, 0 deletions