tree-ssa-phiopt.c (abs_replacement): New function.
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 19 May 2004 03:35:19 +0000 (03:35 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 May 2004 03:35:19 +0000 (21:35 -0600)
commitcc52902d97894d218cf6acfd2aa1b904cb4c62e8
tree62473a83bfb15d0913a0cac54dedc5a8f8620515
parenteeab4d81a61970e9079dbd9a8033d13e0cc27980
tree-ssa-phiopt.c (abs_replacement): New function.

        * tree-ssa-phiopt.c (abs_replacement): New function.
        (empty_block_p): New function extracted from...
        (candidate_bb_for_phi_optimization): Break out empty block test.
        (conditional_replacement): Use empty_block_p.
        (value_replacement): Similarly.

        * gcc.dg/tree-ssa/20040514-2.c: Update expected output.
        * gcc.dg/tree-ssa/20040518-2.c: New test.

Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r82017
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c
gcc/testsuite/gcc.dg/tree-ssa/20040518-2.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c