Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-06-27 Thread Sun Chan
forget the stupid question. Something else is wrong Sun On Fri, Jun 28, 2013 at 2:32 AM, Sun Chan wrote: > is N global? > > > On Fri, Jun 28, 2013 at 1:14 AM, Yiran Wang wrote: > >> Thanks for your comments. >> >> No, the assembly looks the same. >> >> Good or bad, the compiler is able to clean

Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-06-27 Thread Sun Chan
is N global? On Fri, Jun 28, 2013 at 1:14 AM, Yiran Wang wrote: > Thanks for your comments. > > No, the assembly looks the same. > > Good or bad, the compiler is able to clean up the temporary completely, > say, copy propagation and DSE. > > Regards, > Yiran > > > > On Thu, Jun 27, 2013 at 12:26

Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-06-27 Thread Yiran Wang
Thanks for your comments. No, the assembly looks the same. Good or bad, the compiler is able to clean up the temporary completely, say, copy propagation and DSE. Regards, Yiran On Thu, Jun 27, 2013 at 12:26 AM, Jian-Xin Lai wrote: > From your description, if the code is change a little: > >

Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-06-27 Thread Jian-Xin Lai
>From your description, if the code is change a little: for(i = 0; i< j; i++) { int t = N*N; x += t << 3; z = x + N; y = y + *x + *z; } Will the N*N be hoisted? 2013/6/27 Yiran Wang > Hi All, > > This one looks somewhat similar to the last example, but is different. > > i