From: Martin Jambor Date: Fri, 6 Sep 2024 12:12:54 +0000 (+0200) Subject: ipa: Move pass_ipa_cdtor_merge before pass_ipa_cp and pass_ipa_sra X-Git-Tag: basepoints/gcc-16~6037 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db0fa0b35b922449d703c040383abf7acb349d9d;p=thirdparty%2Fgcc.git ipa: Move pass_ipa_cdtor_merge before pass_ipa_cp and pass_ipa_sra When looking at PR 115815 we realized that it would make sense to make calls to functions originally declared static constructors and destructors created by pass_ipa_cdtor_merge visible to IPA-SRA. This patch does that. gcc/ChangeLog: 2024-07-25 Martin Jambor * passes.def: Move pass_ipa_cdtor_merge before pass_ipa_cp and pass_ipa_sra. --- diff --git a/gcc/passes.def b/gcc/passes.def index 6d98c3c9282..40162ac20a0 100644 --- a/gcc/passes.def +++ b/gcc/passes.def @@ -157,9 +157,9 @@ along with GCC; see the file COPYING3. If not see NEXT_PASS (pass_ipa_profile); NEXT_PASS (pass_ipa_icf); NEXT_PASS (pass_ipa_devirt); + NEXT_PASS (pass_ipa_cdtor_merge); NEXT_PASS (pass_ipa_cp); NEXT_PASS (pass_ipa_sra); - NEXT_PASS (pass_ipa_cdtor_merge); NEXT_PASS (pass_ipa_fn_summary); NEXT_PASS (pass_ipa_inline); NEXT_PASS (pass_ipa_pure_const);