From 0688f9c15297a8164c73bcd79bdd2983ea1ab000 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Mon, 31 Jul 2017 13:18:31 +0200 Subject: [PATCH] [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 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-fnsummary.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 (); -- 2.30.2