On 05/17/2018 06:15 AM, Richard Biener wrote:
>
> The previous DSE improvements left us with skipping elements we could
> have possibly removed because I messed up the iterator increment
> upon removal. The following fixes this and also adds another pruning
> opportunity in case the only stmt feeded by the def is an already
> visited PHI.
>
> Bootstrap and regtest running on x86_64-unknown-linux-gnu.
>
> Richard.
>
> 2018-05-17 Richard Biener <rguent...@suse.de>
>
> * tree-ssa-dse.c (dse_classify_store): Fix iterator increment
> for pruning loop and prune defs feeding only already visited PHIs.
LGTM.
jeff