Re: [PATCH] Fix PR 108582: ICE due to PHI-OPT removing a still in use ssa_name.

2023-01-29 Thread Richard Biener via Gcc-patches
On Sat, Jan 28, 2023 at 11:25 PM Andrew Pinski via Gcc-patches wrote: > > This patch adds a check in match_simplify_replacement to make sure the > middlebb > does not have any phi-nodes as we don't currently move those. > This was just a thinko from before. > > Ok? Bootstrapped and tested on

[PATCH] Fix PR 108582: ICE due to PHI-OPT removing a still in use ssa_name.

2023-01-28 Thread Andrew Pinski via Gcc-patches
This patch adds a check in match_simplify_replacement to make sure the middlebb does not have any phi-nodes as we don't currently move those. This was just a thinko from before. Ok? Bootstrapped and tested on x86_64-linux-gnu with no regressions? PR tree-optimization/108582