[PATCH] Print heuristics probability fraction part with 2 digits.

Jeff Law law@redhat.com
Thu Aug 2 22:36:00 GMT 2018


On 07/26/2018 08:43 AM, Martin Liška wrote:
> Hi.
> 
> It's just a cosmetics change where I want to print 2 digits of fraction
> part of heuristics probabilities. It helps to distinguish 100% from
> PROB_VERY_LIKELY (99.96%).
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
> 
> Ready to be installed?
> Martin
> 
> gcc/ChangeLog:
> 
> 2018-07-26  Martin Liska  <mliska@suse.cz>
> 
> 	* predict.c (dump_prediction): Change to 2 digits
>         in fraction part.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-07-26  Martin Liska  <mliska@suse.cz>
> 
> 	* gcc.dg/predict-1.c: Adjust scanned pattern to cover 2 digits.
> 	* gcc.dg/predict-13.c:Likewise.
> 	* gcc.dg/predict-3.c:Likewise.
> 	* gcc.dg/predict-4.c:Likewise.
> 	* gcc.dg/predict-5.c:Likewise.
> 	* gcc.dg/predict-6.c:Likewise.
> 	* gcc.dg/predict-9.c:Likewise.
> 	* gfortran.dg/predict-1.f90:Likewise.
OK.
jeff



More information about the Gcc-patches mailing list