[PR 81477] Set versionable regardless of optimization level
authorMartin Jambor <mjambor@suse.cz>
Mon, 31 Jul 2017 11:18:31 +0000 (13:18 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 31 Jul 2017 11:18:31 +0000 (13:18 +0200)
2017-07-31  Martin Jambor  <mjambor@suse.cz>

PR hsa/81477
* ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
regardless of optimization level.

From-SVN: r250738

gcc/ChangeLog
gcc/ipa-fnsummary.c

index 58d1942c8f7c098dfa8db771ac3dd97498dca2c8..7b9ab5780794977c44fe2805e4f238cf1529dcb6 100644 (file)
@@ -1,3 +1,9 @@
+2017-07-31  Martin Jambor  <mjambor@suse.cz>
+
+       PR hsa/81477
+       * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
+       regardless of optimization level.
+
 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
            Martin Liska  <mliska@suse.cz>
 
index 7324aac32c2f26309f3104ab7a67caa3cdc9fffb..27e8d73f9df3bb6bd479193e5618147647c195f9 100644 (file)
@@ -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 ();