Re: Transform assertion into optimization hints

2018-09-19 Thread Jonathan Wakely
On 19/09/18 10:42 +0100, Jonathan Wakely wrote: On 19/09/18 10:16 +0100, Jonathan Wakely wrote: On 17/09/18 23:15 +0200, Marc Glisse wrote: On Mon, 17 Sep 2018, François Dumont wrote: We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. N

Re: Transform assertion into optimization hints

2018-09-19 Thread Jonathan Wakely
On 19/09/18 10:16 +0100, Jonathan Wakely wrote: On 17/09/18 23:15 +0200, Marc Glisse wrote: On Mon, 17 Sep 2018, François Dumont wrote: We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. Note that when I implemented it the wrong way test

Re: Transform assertion into optimization hints

2018-09-19 Thread Jonathan Wakely
On 17/09/18 23:15 +0200, Marc Glisse wrote: On Mon, 17 Sep 2018, François Dumont wrote: We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. Note that when I implemented it the wrong way tests started to fail so it is clearly having an eff

Re: Transform assertion into optimization hints

2018-09-18 Thread François Dumont
On 09/18/2018 08:11 AM, Marc Glisse wrote: On Tue, 18 Sep 2018, François Dumont wrote: If your concern is rather that the condition got evaluated which will eventually slow down execution then I need to check generated code. Any good link explaining how to have a clear view on the generated c

Re: Transform assertion into optimization hints

2018-09-17 Thread Marc Glisse
On Tue, 18 Sep 2018, François Dumont wrote: If your concern is rather that the condition got evaluated which will eventually slow down execution then I need to check generated code. Any good link explaining how to have a clear view on the generated code ? This. For a file like #include vo

Re: Transform assertion into optimization hints

2018-09-17 Thread François Dumont
On 09/17/2018 11:15 PM, Marc Glisse wrote: On Mon, 17 Sep 2018, François Dumont wrote: We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. Note that when I implemented it the wrong way tests started to fail so it is clearly having an effe

Re: Transform assertion into optimization hints

2018-09-17 Thread Marc Glisse
On Mon, 17 Sep 2018, François Dumont wrote: We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. Note that when I implemented it the wrong way tests started to fail so it is clearly having an effect on the generated code. * include/bits/c

Transform assertion into optimization hints

2018-09-17 Thread François Dumont
We talk about it a while back. I've run testsuite several times since I have this patch on my local copy. Note that when I implemented it the wrong way tests started to fail so it is clearly having an effect on the generated code. * include/bits/c++config [__OPTIMIZE__](__glibcxx_assert): Def