tree.c (element_mode, [...]): New functions.
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 18 Nov 2014 10:26:31 +0000 (11:26 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 18 Nov 2014 10:26:31 +0000 (10:26 +0000)
commit092404511f58ed2a7c11785fa5b2e69b32048fd3
treec1395e2804b0507497743d4f678303c275f80e85
parent9f37760abed226a27061ded75d50be803ef73a96
tree.c (element_mode, [...]): New functions.

2014-11-18  Marc Glisse  <marc.glisse@inria.fr>

* tree.c (element_mode, integer_truep): New functions.
* tree.h (element_mode, integer_truep): Declare them.
* fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
fold_cond_expr_with_comparison, fold_real_zero_addition_p,
fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
fold_strip_sign_ops): Use element_mode.
(fold_binary_loc): Use element_mode and element_precision.
* match.pd: Use integer_truep, element_mode, element_precision,
VECTOR_TYPE_P and build_one_cst. Extend some transformations to
vectors. Simplify A/-A.

From-SVN: r217702
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/tree.c
gcc/tree.h