From: jamborm Date: Mon, 31 Jul 2017 11:18:31 +0000 (+0000) Subject: [PR 81477] Set versionable regardless of optimization level X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3eed1ac0078cc9f320640689bb4923b5d988e732;p=thirdparty%2Fgcc.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250738 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58d1942c8f7c..7b9ab5780794 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 7324aac32c2f..27e8d73f9df3 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 ();