From: Martin Jambor Date: Mon, 31 Jul 2017 11:18:31 +0000 (+0200) Subject: [PR 81477] Set versionable regardless of optimization level X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0688f9c15297a8164c73bcd79bdd2983ea1ab000;p=gcc.git [PR 81477] Set versionable regardless of optimization level 2017-07-31 Martin Jambor PR hsa/81477 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable regardless of optimization level. From-SVN: r250738 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58d1942c8f7..7b9ab578079 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-31 Martin Jambor + + PR hsa/81477 + * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable + regardless of optimization level. + 2017-07-31 Jan Hubicka Martin Liska diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 7324aac32c2..27e8d73f9df 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -3174,9 +3174,7 @@ ipa_fn_summary_generate (void) FOR_EACH_DEFINED_FUNCTION (node) if (DECL_STRUCT_FUNCTION (node->decl)) - node->local.versionable = - (opt_for_fn (node->decl, optimize) - && tree_versionable_function_p (node->decl)); + node->local.versionable = tree_versionable_function_p (node->decl); ipa_fn_summary_alloc ();