This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trans-mem] Re: [patch] handle new cgraph nodes in ipa-cp pass
> I guess then making the TM pass a SMALL_IPA will solve the problem. It would need to be placed
> before all the IPA passes, but I guess it is the case already, right?
Which is exactly the fix I had before I tried to be clever and fix
ipa-cp :). Oh well...
Thanks for reviewing though.
Richard pre-approved the patch below. Committing to *branch*.
* passes.c (init_optimization_passes): Move pass_ipa_tm into
all_small_ipa_passes.
Index: passes.c
===================================================================
--- passes.c (revision 157626)
+++ passes.c (working copy)
@@ -795,11 +795,11 @@ init_optimization_passes (void)
}
NEXT_PASS (pass_ipa_increase_alignment);
NEXT_PASS (pass_ipa_matrix_reorg);
+ NEXT_PASS (pass_ipa_tm);
*p = NULL;
p = &all_regular_ipa_passes;
NEXT_PASS (pass_ipa_whole_program_visibility);
- NEXT_PASS (pass_ipa_tm);
NEXT_PASS (pass_ipa_cp);
NEXT_PASS (pass_ipa_inline);
NEXT_PASS (pass_ipa_reference);