On 11/17/2017 08:53 PM, Jan Hubicka wrote:
Hi,
this patch makes static profile to be in range 0...2^30 rather than
0...10000. This is safe now as profile-counts are taking care of
possible overflow when the profile ends up cummulating too high after
inlining.
MThere are two testcases that needs adusting. dump-2.c simply checks
for specific value of counter that is now different. pr77445-2
now gets one extra mismatch reported. The mismatch was present before
too but due to low precision it was not visible.
Bootstrapped/regtested x86_64-linux, comitted.
Honza
* predict.c (determine_unlikely_bbs): Set cgraph node count to 0
when entry block was promoted unlikely.
(estimate_bb_frequencies): Increase frequency scale.
* profile-count.h (profile_count): Export precision info.
* gcc.dg/tree-ssa/dump-2.c: Fixup template for profile precision
changes.
* gcc.dg/tree-ssa/pr77445-2.c: Fixup template for profile precision
changes.
Hi,
this caused PR 83043 - "FAIL: libgomp.graphite/force-parallel-1.c
scan-tree-dump-times graphite "2 loops carried no dependency" 1 (found 0
times)" ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83043 ).
Thanks,
- Tom