* ipa-modref.c (modref_summaries::insert,
modref_summaries_lto::insert): Remove summary if ipa-modref is disabled.
optimization_summaries->remove (node);
return;
}
- if (!DECL_STRUCT_FUNCTION (node->decl))
+ if (!DECL_STRUCT_FUNCTION (node->decl)
+ || !opt_for_fn (node->decl, flag_ipa_modref))
{
summaries->remove (node);
return;
propagated. This is done only by SIMD cloning that is not very
critical. */
if (!DECL_STRUCT_FUNCTION (node->decl)
+ || !opt_for_fn (node->decl, flag_ipa_modref)
|| propagated)
{
summaries_lto->remove (node);