Re: [PATCH] Print 2 digits after decimal delimiter for BB frequencies

2016-12-14 Thread Jeff Law
0:00 2001 From: marxin Date: Thu, 1 Dec 2016 10:55:55 +0100 Subject: [PATCH] Print 2 digits after decimal delimiter for BB frequencies gcc/ChangeLog: 2016-12-01 Martin Liska * gimple-pretty-print.c (dump_edge_probability): Use newly defined PROBABILITY_FORMAT. (dum

Re: [PATCH] Print 2 digits after decimal delimiter for BB frequencies

2016-12-08 Thread Martin Liška
t;, 12); >> if (_1 != 2) >> goto ; [0.04%] >> else >> goto ; [99.96%] >> >>[0.04%]: >> __builtin_abort (); >> >>[99.96%]: >> return; >> >> } >> >> Patch can bootstrap on ppc64le-redhat-linux

Re: [PATCH] Print 2 digits after decimal delimiter for BB frequencies

2016-12-08 Thread Martin Sebor
On 12/08/2016 05:55 AM, Martin Liška wrote: With the patch applied, one can distinguish between PROB_VERY_UNLIKELY and real zero probability: I tried to see if formatting the expression e->probability * 100.0 / REG_BR_PROB_BASE with "%.2f" is guaranteed to output non-zero when e->probabilit

[PATCH] Print 2 digits after decimal delimiter for BB frequencies

2016-12-08 Thread Martin Liška
96%]: return; } Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 18f0fa35f91db675f5abf6a0aa8cf3582e79c772 Mon Sep 17 00:00:00 2001 From: marxin Date: Thu, 1 Dec 2016 10:55:55 +0100 Subject: [PATCH] Print 2 digits after decimal