On 4/19/23 15:36, Andrew Pinski via Gcc-patches wrote:
For diamond bb phi node detection, there is a check
to make sure bb1 is not empty. But in the case where
bb1 is empty except for a predicate, empty_block_p
will still return true but the minmax code handles
that case already so there is no reason to check
if the basic block is empty.

This patch removes that check and removes some
xfails.

OK? Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

        * tree-ssa-phiopt.cc (tree_ssa_phiopt_worker):
        Remove check on empty_block_p.

gcc/testsuite/ChangeLog:

        * gcc.dg/tree-ssa/phi-opt-5.c: Remvoe some xfail.
OK
jeff

Reply via email to