Re: Question about GCC's standard dependent optimization

2014-07-01 Thread Bin.Cheng
On Mon, Jun 30, 2014 at 5:42 PM, Jeff Law wrote: > On 06/26/14 14:13, Jeff Law wrote: >> >> On 06/26/14 02:44, Bin.Cheng wrote: >>> >>> Hi, >>> I ran into PR60947, in which GCC understands the return value of >>> memset is the first argument passed in, according to standard, then >>> does optimiza

Re: Question about GCC's standard dependent optimization

2014-06-30 Thread Jeff Law
On 06/26/14 14:13, Jeff Law wrote: On 06/26/14 02:44, Bin.Cheng wrote: Hi, I ran into PR60947, in which GCC understands the return value of memset is the first argument passed in, according to standard, then does optimization like below: movip, sp stmfdsp!, {r4, r5, r6, r7, r8,

Re: Question about GCC's standard dependent optimization

2014-06-27 Thread Richard Biener
On Thu, Jun 26, 2014 at 10:13 PM, Jeff Law wrote: > On 06/26/14 02:44, Bin.Cheng wrote: >> >> Hi, >> I ran into PR60947, in which GCC understands the return value of >> memset is the first argument passed in, according to standard, then >> does optimization like below: >> movip, sp >>

Re: Question about GCC's standard dependent optimization

2014-06-26 Thread Bin.Cheng
On Fri, Jun 27, 2014 at 4:13 AM, Jeff Law wrote: > On 06/26/14 02:44, Bin.Cheng wrote: >> >> Hi, >> I ran into PR60947, in which GCC understands the return value of >> memset is the first argument passed in, according to standard, then >> does optimization like below: >> movip, sp >>

Re: Question about GCC's standard dependent optimization

2014-06-26 Thread Jeff Law
On 06/26/14 02:44, Bin.Cheng wrote: Hi, I ran into PR60947, in which GCC understands the return value of memset is the first argument passed in, according to standard, then does optimization like below: movip, sp stmfdsp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc} sub

Re: Question about GCC's standard dependent optimization

2014-06-26 Thread Bin.Cheng
Thanks for elaborating. On Thu, Jun 26, 2014 at 5:18 PM, Richard Biener wrote: > On Thu, Jun 26, 2014 at 10:44 AM, Bin.Cheng wrote: >> Hi, >> I ran into PR60947, in which GCC understands the return value of >> memset is the first argument passed in, according to standard, then >> does optimizati

Re: Question about GCC's standard dependent optimization

2014-06-26 Thread Richard Biener
On Thu, Jun 26, 2014 at 10:44 AM, Bin.Cheng wrote: > Hi, > I ran into PR60947, in which GCC understands the return value of > memset is the first argument passed in, according to standard, then > does optimization like below: > movip, sp > stmfdsp!, {r4, r5, r6, r7, r8, r9, r10, fp

Question about GCC's standard dependent optimization

2014-06-26 Thread Bin.Cheng
Hi, I ran into PR60947, in which GCC understands the return value of memset is the first argument passed in, according to standard, then does optimization like below: movip, sp stmfdsp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc} subfp, ip, #4 subsp, sp, #20 l