Patchwork Remove overactive profile sanity check

login
register
mail settings
Submitter Jan Hubicka
Date Jan. 10, 2011, 10:04 p.m.
Message ID <20110110220420.GB2858@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/78253/
State New
Headers show

Comments

Jan Hubicka - Jan. 10, 2011, 10:04 p.m.
Hi,
input_profile_summary checks that sum_max exceeds number of runs.  The idea was
that main() has to be executed at least as many times as the runs is.  This is
not true for shared libraries as seen during mozilla build.  I've removed the check
thus and will commit it as obvious.

	PR lto/45375
	* lto-cgraph.c (input_profile_summary): Remove overactive sanity check.

Patch

Index: lto-cgraph.c
===================================================================
--- lto-cgraph.c	(revision 168642)
+++ lto-cgraph.c	(working copy)
@@ -1435,9 +1435,6 @@ 
     {
       file_data->profile_info.runs = runs;
       file_data->profile_info.sum_max = lto_input_uleb128 (ib);
-      if (runs > file_data->profile_info.sum_max)
-	fatal_error ("Corrupted profile info in %s: sum_max is smaller than runs",
-		     file_data->file_name);
     }
 
 }