ipa-split is not now run for auto-profile. IMO this was an oversight.
This patch enables it similar to PGO runs.
gcc/ChangeLog:
* ipa-split.cc (pass_feedback_split_functions::clone): New.
* passes.def: Enable pass_feedback_split_functions for
pass_ipa_auto_profile.
Signed-off-by: Kugan Vivekanandarajah <kvivekananda@nvidia.com>
return execute_feedback_split_functions ();
}
+ opt_pass * clone () final override
+ {
+ return new pass_feedback_split_functions (m_ctxt);
+ }
}; // class pass_feedback_split_functions
bool
NEXT_PASS (pass_target_clone);
NEXT_PASS (pass_ipa_auto_profile);
+ PUSH_INSERT_PASSES_WITHIN (pass_ipa_auto_profile)
+ NEXT_PASS (pass_feedback_split_functions);
+ POP_INSERT_PASSES ()
NEXT_PASS (pass_ipa_tree_profile);
PUSH_INSERT_PASSES_WITHIN (pass_ipa_tree_profile)
NEXT_PASS (pass_feedback_split_functions);