Re: [PATCH 5/6] PHIOPT: Ignore predicates for match-and-simplify phi-opt

2023-04-24 Thread Richard Biener via Gcc-patches
On Sun, Apr 23, 2023 at 12:11 AM Andrew Pinski via Gcc-patches wrote: > > This fixes a missed optimization where early phi-opt would > not work when there was predicates. The easiest fix is > to change empty_bb_or_one_feeding_into_p to ignore those > statements while checking for only feeding stat

[PATCH 5/6] PHIOPT: Ignore predicates for match-and-simplify phi-opt

2023-04-22 Thread Andrew Pinski via Gcc-patches
This fixes a missed optimization where early phi-opt would not work when there was predicates. The easiest fix is to change empty_bb_or_one_feeding_into_p to ignore those statements while checking for only feeding statement. Note phi-opt-23.c and phi-opt-24.c still fail as we don't handle diamond