From: Jan Hubicka Date: Thu, 30 Apr 2015 15:09:19 +0000 (+0200) Subject: re PR ipa/65873 (Failure to inline always_inline memcpy) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2165bd7d51059cb68a75f808f0ee31251268536;p=gcc.git re PR ipa/65873 (Failure to inline always_inline memcpy) PR ipa/65873 * ipa-inline.c (can_inline_edge_p): It is safe to inline across -fstrict-aliasing boundaries. From-SVN: r222634 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac84dbbaf05..7fa0a1154f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-04-30 Jan Hubicka + + PR ipa/65873 + * ipa-inline.c (can_inline_edge_p): It is safe to inline across + -fstrict-aliasing boundaries. + 2015-04-30 Kyrylo Tkachov * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 565c5e38b64..1427761e4fa 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -439,9 +439,6 @@ can_inline_edge_p (struct cgraph_edge *e, bool report, == !opt_for_fn (callee->decl, optimize) || !always_inline)) || check_match (flag_wrapv) || check_match (flag_trapv) - /* Strictly speaking only when the callee contains memory - accesses that are not using alias-set zero anyway. */ - || check_maybe_down (flag_strict_aliasing) /* Strictly speaking only when the callee uses FP math. */ || check_maybe_up (flag_rounding_math) || check_maybe_up (flag_trapping_math)