fold-const.c (swap_tree_comparison): No longer static.
authorJeff Law <law@redhat.com>
Wed, 16 Jun 2004 05:09:41 +0000 (23:09 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 16 Jun 2004 05:09:41 +0000 (23:09 -0600)
commitfd660b1bee7af09cd69d1125cf35e6aa5826234c
tree2d5c137139fce6357a14c09e7a739e3529131431
parent3e97fe67e31070b78a333dba397ab4ddde2e7311
fold-const.c (swap_tree_comparison): No longer static.

        * fold-const.c (swap_tree_comparison): No longer static.
        (tree_swap_operands_p): Similarly.  Return true if both operands
        are SSA_NAMEs and the first operand has a higher version number than
        the second operand.
        * tree.h (swap_tree_comparison): Prototype.
        (tree_swap_operands_p): Prototype.
        * tree-ssa-operands.c (get_expr_operands): For commutative
        operators and relational comparisons, canonicalize the
        order of the operands.

        * gcc.dg/tree-ssa/20040615-1.c: New test.
        * gcc.dg/tree-ssa/20030824-1.c: Update expected output to
        be less sensitive to operand ordering.
        * gcc.dg/tree-ssa/20030824-2.c: Likewise.

From-SVN: r83224
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c
gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c
gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c [new file with mode: 0644]
gcc/tree-ssa-operands.c
gcc/tree.h