Re: PR79715: Special case strcpy/strncpy for dse

2017-05-01 Thread Jeff Law
On 05/01/2017 12:17 PM, Richard Biener wrote: On April 28, 2017 8:14:56 PM GMT+02:00, Jeff Law wrote: On 04/24/2017 03:05 AM, Prathamesh Kulkarni wrote: On 1 March 2017 at 13:24, Richard Biener wrote: On Tue, 28 Feb 2017, Jeff Law wrote: On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote:

Re: PR79715: Special case strcpy/strncpy for dse

2017-05-01 Thread Richard Biener
On April 28, 2017 8:14:56 PM GMT+02:00, Jeff Law wrote: >On 04/24/2017 03:05 AM, Prathamesh Kulkarni wrote: >> On 1 March 2017 at 13:24, Richard Biener wrote: >>> On Tue, 28 Feb 2017, Jeff Law wrote: >>> On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: > On 28 February 2017 at 15:40, J

Re: PR79715: Special case strcpy/strncpy for dse

2017-05-01 Thread Martin Sebor
On 04/24/2017 03:05 AM, Prathamesh Kulkarni wrote: On 1 March 2017 at 13:24, Richard Biener wrote: On Tue, 28 Feb 2017, Jeff Law wrote: On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: On 28 February 2017 at 15:40, Jakub Jelinek wrote: On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh

Re: PR79715: Special case strcpy/strncpy for dse

2017-04-28 Thread Jeff Law
On 04/24/2017 03:05 AM, Prathamesh Kulkarni wrote: On 1 March 2017 at 13:24, Richard Biener wrote: On Tue, 28 Feb 2017, Jeff Law wrote: On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: On 28 February 2017 at 15:40, Jakub Jelinek wrote: On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh

Re: PR79715: Special case strcpy/strncpy for dse

2017-04-24 Thread Prathamesh Kulkarni
On 1 March 2017 at 13:24, Richard Biener wrote: > On Tue, 28 Feb 2017, Jeff Law wrote: > >> On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: >> > On 28 February 2017 at 15:40, Jakub Jelinek wrote: >> > > On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh Kulkarni wrote: >> > > > Hi, >> > > >

Re: PR79715: Special case strcpy/strncpy for dse

2017-02-28 Thread Richard Biener
On Tue, 28 Feb 2017, Jeff Law wrote: > On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: > > On 28 February 2017 at 15:40, Jakub Jelinek wrote: > > > On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh Kulkarni wrote: > > > > Hi, > > > > The attached patch adds special-casing for strcpy/strncpy

Re: PR79715: Special case strcpy/strncpy for dse

2017-02-28 Thread Jeff Law
On 02/28/2017 05:59 AM, Prathamesh Kulkarni wrote: On 28 February 2017 at 15:40, Jakub Jelinek wrote: On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh Kulkarni wrote: Hi, The attached patch adds special-casing for strcpy/strncpy to dse pass. Bootstrapped+tested on x86_64-unknown-linux-gnu.

Re: PR79715: Special case strcpy/strncpy for dse

2017-02-28 Thread Prathamesh Kulkarni
On 28 February 2017 at 15:40, Jakub Jelinek wrote: > On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh Kulkarni wrote: >> Hi, >> The attached patch adds special-casing for strcpy/strncpy to dse pass. >> Bootstrapped+tested on x86_64-unknown-linux-gnu. >> OK for GCC 8 ? > > What is special on st

Re: PR79715: Special case strcpy/strncpy for dse

2017-02-28 Thread Jakub Jelinek
On Tue, Feb 28, 2017 at 03:33:11PM +0530, Prathamesh Kulkarni wrote: > Hi, > The attached patch adds special-casing for strcpy/strncpy to dse pass. > Bootstrapped+tested on x86_64-unknown-linux-gnu. > OK for GCC 8 ? What is special on strcpy/strncpy? Unlike memcpy/memmove/memset, you don't know t

PR79715: Special case strcpy/strncpy for dse

2017-02-28 Thread Prathamesh Kulkarni
Hi, The attached patch adds special-casing for strcpy/strncpy to dse pass. Bootstrapped+tested on x86_64-unknown-linux-gnu. OK for GCC 8 ? Thanks, Prathamesh diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79715.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79715.c new file mode 100644 index 000..1a832ca