aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2024-09-06 14:12:54 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2024-09-06 14:15:50 +0200
commitdb0fa0b35b922449d703c040383abf7acb349d9d (patch)
tree4e7942bb9619f3f24d0386d3bf73088cb316a0fc /gcc
parente98ad6a049c96c21cf641954584c2f5b7df0ce93 (diff)
downloadgcc-db0fa0b35b922449d703c040383abf7acb349d9d.zip
gcc-db0fa0b35b922449d703c040383abf7acb349d9d.tar.gz
gcc-db0fa0b35b922449d703c040383abf7acb349d9d.tar.bz2
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 <mjambor@suse.cz> * passes.def: Move pass_ipa_cdtor_merge before pass_ipa_cp and pass_ipa_sra.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/passes.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/passes.def b/gcc/passes.def
index 6d98c3c..40162ac 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);