]> git.ipfire.org Git - thirdparty/gcc.git/commit
Stream ipa_return_value_summary
authorJan Hubicka <hubicka@ucw.cz>
Wed, 16 Apr 2025 13:28:32 +0000 (15:28 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Wed, 16 Apr 2025 13:28:32 +0000 (15:28 +0200)
commiteabba7be040e81690332070873d59d23e8c93e11
treea9187447b91b2b63146c60683473d2f8fa6d5067
parent0e8b6f0dad11ece6c693e4765f3c58309ff8ef12
Stream ipa_return_value_summary

Add streaming of return summaries from compile time to ltrans
which are now needed for vrp to not ouput false errors on musttail.

Co-authored-by: Jakub Jelinek <jakub@redhat.com>
gcc/ChangeLog:
PR tree-optimization/119614

* ipa-prop.cc (ipa_write_return_summaries): New function.
(ipa_record_return_value_range_1): Break out from ....
(ipa_record_return_value_range): ... here.
(ipa_read_return_summaries): New function.
(ipa_prop_read_section): Read return summaries.
(read_ipcp_transformation_info): Read return summaries.
(ipcp_write_transformation_summaries): Write return summaries;
do not stream stray 0.

gcc/testsuite/ChangeLog:

* g++.dg/lto/pr119614_0.C: New test.
gcc/ipa-prop.cc
gcc/testsuite/g++.dg/lto/pr119614_0.C [new file with mode: 0644]