Don't call get_working_sets w/ LTO and -fauto-profile (PR
authorMartin Liska <mliska@suse.cz>
Mon, 25 Jul 2016 11:28:52 +0000 (13:28 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 25 Jul 2016 11:28:52 +0000 (11:28 +0000)
* lto-cgraph.c (input_symtab): Don't call get_working_sets
if flag_auto_profile is set to true.

From-SVN: r238707

gcc/ChangeLog
gcc/lto-cgraph.c

index 7a8a69c..e8952cb 100644 (file)
@@ -1,5 +1,10 @@
 2016-07-25  Martin Liska  <mliska@suse.cz>
 
+       * lto-cgraph.c (input_symtab): Don't call get_working_sets
+       if flag_auto_profile is set to true.
+
+2016-07-25  Martin Liska  <mliska@suse.cz>
+
        PR gcov-profile/71868
        * cfgloopanal.c (expected_loop_iterations_unbounded): When we
        have a function with multiple latches, count them all.
index 5cef2ba..2642041 100644 (file)
@@ -1867,7 +1867,9 @@ input_symtab (void)
     }
 
   merge_profile_summaries (file_data_vec);
-  get_working_sets ();
+
+  if (!flag_auto_profile)
+    get_working_sets ();
 
 
   /* Clear out the aux field that was used to store enough state to