This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Disable tree-ssa DSE for now


> int x;
> 
> int
> f1 (int i, int j, int k)
> {
>   int *p = k ? &i : &j;
>   i = 3;
>   *p = 5;
>   x = j;
>   return i;
> }
> 
....
> 
> What's important to note here is that the store into "i" is no longer
> dead.  

It's actually partially dead.
It's dead along one path, which is the path where p = &i.
The PDCE part of store sinking i never submitted (because the store
sinking patch i did submit was toned down specifically to gear it to
4.0)
i have will move it into the other path (the path where p = &j), which
is nice :).




--Dan




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]