Remove overactive profile sanity check

Submitted by Jan Hubicka on Jan. 10, 2011, 10:04 p.m.

Details

Message ID 20110110220420.GB2858@kam.mff.cuni.cz
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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);
     }
 
 }