Re: Identifying a block copy

2007-10-09 Thread Pranav Bhandarkar
On 10/9/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > Yes > we do not create subvars for non-named memory locations. IE random > pointer dereferences. > > This is mainly because it would require a lot of time and memory in > the compiler. > > It was done because most optimizers rely solely on vde

Re: Identifying a block copy

2007-10-09 Thread Daniel Berlin
On 10/9/07, Pranav Bhandarkar <[EMAIL PROTECTED]> wrote: > Hi, > consider the following code, > > struct x { int a; int b; int c; int d; int e[120];}; > struct x *a, *b; > void foo ( ) > { > *a = *b; > } > > Now for the stmt int the function foo a memcpy will be generated. > However, this can b