fold-const.c (fold_comparison): Remove redundant constant folding and operand swapping.
authorRichard Biener <rguenther@suse.de>
Fri, 17 Oct 2014 11:32:12 +0000 (11:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Oct 2014 11:32:12 +0000 (11:32 +0000)
commita342326069ab45d77f0e508983321e613c4acac2
tree3ee115ae4945ecb152e39f0551068a6a35454a92
parent73049af5fa62c7eeca27585f8f318e9bea7c47ae
fold-const.c (fold_comparison): Remove redundant constant folding and operand swapping.

2014-10-17  Richard Biener  <rguenther@suse.de>

* fold-const.c (fold_comparison): Remove redundant constant
folding and operand swapping.
(fold_binary_loc): Do comparison operand swapping here.
(fold_ternary_loc): Canonicalize operand order for
commutative ternary operations.
* tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
and FMA_EXPR.

From-SVN: r216394
gcc/ChangeLog
gcc/fold-const.c
gcc/tree.c