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
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
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:
>
>
>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