diff options
author | Jeff Law <law@redhat.com> | 2004-06-15 23:09:41 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2004-06-15 23:09:41 -0600 |
commit | fd660b1bee7af09cd69d1125cf35e6aa5826234c (patch) | |
tree | 2d5c137139fce6357a14c09e7a739e3529131431 /gcc/tree.h | |
parent | 3e97fe67e31070b78a333dba397ab4ddde2e7311 (diff) | |
download | gcc-fd660b1bee7af09cd69d1125cf35e6aa5826234c.zip gcc-fd660b1bee7af09cd69d1125cf35e6aa5826234c.tar.gz gcc-fd660b1bee7af09cd69d1125cf35e6aa5826234c.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3332,6 +3332,9 @@ extern tree build_fold_addr_expr (tree); extern tree build_fold_addr_expr_with_type (tree, tree); extern tree build_fold_indirect_ref (tree); +extern bool tree_swap_operands_p (tree, tree, bool); +extern enum tree_code swap_tree_comparison (enum tree_code); + /* In builtins.c */ extern tree fold_builtin (tree); extern enum built_in_function builtin_mathfn_code (tree); |