+2019-11-14 Martin Liska <mliska@suse.cz>
+
+ * ipa-inline.c (want_inline_small_function_p): Use
+ CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
+ of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
+
2019-11-14 Martin Liska <mliska@suse.cz>
* ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
- ipa_call_summaries->get (e)->call_stmt_size
> inline_insns_auto (e->caller, true))
{
- if (opt_for_fn (e->caller->decl, optimize) >= 3)
- e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_LIMIT;
- else
- e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_O2_LIMIT;
+ e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_LIMIT;
want_inline = false;
}
else if ((DECL_DECLARED_INLINE_P (callee->decl)
: CIF_MAX_INLINE_INSNS_AUTO_LIMIT);
else
e->inline_failed = (DECL_DECLARED_INLINE_P (callee->decl)
- ? CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT
- : CIF_MAX_INLINE_INSNS_AUTO_O2_LIMIT);
+ ? CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT
+ : CIF_MAX_INLINE_INSNS_AUTO_LIMIT);
want_inline = false;
}
else
if (growth >= inline_insns_single (e->caller, false)
|| growth_positive_p (callee, e, growth))
{
- if (opt_for_fn (e->caller->decl, optimize) >= 3)
- e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_LIMIT;
- else
- e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_O2_LIMIT;
+ e->inline_failed = CIF_MAX_INLINE_INSNS_AUTO_LIMIT;
want_inline = false;
}
}