Re: [PATCH] tree-optimization/100112 - VN last_vuse and redundant store elimination

2021-09-27 Thread Richard Biener via Gcc-patches
On Mon, Sep 27, 2021 at 3:08 PM Richard Biener via Gcc-patches wrote: > > This avoids the last_vuse optimization hindering redundant store > elimination by always also recording the original VUSE that was > in effect on the load. > > Bootstrapped and tested on x86_64-unknown-linux-gnu. > > I'm sti

[PATCH] tree-optimization/100112 - VN last_vuse and redundant store elimination

2021-09-27 Thread Richard Biener via Gcc-patches
This avoids the last_vuse optimization hindering redundant store elimination by always also recording the original VUSE that was in effect on the load. Bootstrapped and tested on x86_64-unknown-linux-gnu. I'm still pondering on how to avoid the wastage of adding the ref twice and will at least re