Re: [PATCH] Enhance dump_probability function.

2017-06-16 Thread Jan Hubicka
> Hi. > > This is pre-approved patch that displays edge counts in dump files: > > ... > _85 = _83 + _84; > len_86 = SQRT (_85); > if (_85 u>= 0.0) > goto ; [99.00%] [count: 778568] > else > goto ; [1.00%] [count: 7864] > >[0.01%] [count: 7864]: > sqrt (_85); > ... > > That

Re: [PATCH] Enhance dump_probability function.

2017-06-14 Thread Andreas Schwab
On Jun 14 2017, Rainer Orth wrote: > +{ dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\]\\ > \\\[count:\\\[^:\\]*\\\]:\n *must_not_eliminate" 127 "optimized" { target { > ilp32 || lp64 } } } } > +{ dg-final { scan-tree-dump-times "> \\\[\[0-9.\]+%\\\]\\ > \\\[count:\\\[^:\\]*\\\]:

Re: [PATCH] Enhance dump_probability function.

2017-06-14 Thread Martin Liška
On 06/14/2017 08:31 AM, Jakub Jelinek wrote: > I've looked at the patch and committed following change that makes > both tests pass. Scanning for [^:]* is weird, it would make more sense > to scan for [^]]*, but as only [0-9INV]* can appear there, I think it > doesn't hurt to be more precise. Yes

Re: [PATCH] Enhance dump_probability function.

2017-06-13 Thread Jakub Jelinek
On Wed, Jun 14, 2017 at 07:52:10AM +0200, Rainer Orth wrote: > both revised scan-tree-dump patterns got the quoting wrong, leading to > attempts to run unknown procs ^\\: instead of matching [^:] ;-( > > This totally broke make check-gcc: the affected partial test runs > aborted at that point, lea

Re: [PATCH] Enhance dump_probability function.

2017-06-13 Thread Rainer Orth
Hi Paul, > New "ERROR: (DejaGnu)" on mips64el target. > > my DejaGnu version is 1.5.1. > > 1) > make check-gcc RUNTESTFLAGS="tree-ssa.exp=builtin-sprintf-2.c" > ... > ERROR: (DejaGnu) proc "^:\\" does not exist. > The error code is TCL LOOKUP COMMAND ^:\\ > The info on the error is: > invalid comm

Re: [PATCH] Enhance dump_probability function.

2017-06-13 Thread Paul Hua
New "ERROR: (DejaGnu)" on mips64el target. my DejaGnu version is 1.5.1. 1) make check-gcc RUNTESTFLAGS="tree-ssa.exp=builtin-sprintf-2.c" ... ERROR: (DejaGnu) proc "^:\\" does not exist. The error code is TCL LOOKUP COMMAND ^:\\ The info on the error is: invalid command name "^:\" while execu