diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-13 13:58:59 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-13 13:58:59 +0000 |
commit | 9ec260f0908cc670f002f111cb0ac779eb57abf0 (patch) | |
tree | b84b11303968c5b98e08de3b9e43e7f0e574316c /gcc/fold-const.c | |
parent | 7e689f9a08deca05e237aa1885f52a743dac8c0a (diff) | |
download | gcc-9ec260f0908cc670f002f111cb0ac779eb57abf0.tar.gz |
2014-11-13 Richard Biener <rguenther@suse.de>
* match.pd: Add tcc_comparison, inverted_tcc_comparison
and inverted_tcc_comparison_with_nans operator lists.
Use tcc_comparison in the truth_valued_p predicate definition.
Restrict logical_inverted_value with bit_xor to integral types.
Build a boolean true for simplifying x |^ !x because of
vector types. Implement patterns from forward_propagate_comparison
* tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
(get_prop_dest_stmt): Likewise.
(pass_forwprop::execute): Do not call it.
* fold-const.c (fold_unary_loc): Remove the pattern here.
* gcc.dg/tree-ssa/forwprop-28.c: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217496 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a711be9c106..e51abee590c 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -7938,18 +7938,6 @@ fold_unary_loc (location_t loc, enum tree_code code, tree type, tree op0) if (i == count) return build_vector (type, elements); } - else if (COMPARISON_CLASS_P (arg0) - && (VECTOR_TYPE_P (type) - || (INTEGRAL_TYPE_P (type) && TYPE_PRECISION (type) == 1))) - { - tree op_type = TREE_TYPE (TREE_OPERAND (arg0, 0)); - enum tree_code subcode = invert_tree_comparison (TREE_CODE (arg0), - HONOR_NANS (TYPE_MODE (op_type))); - if (subcode != ERROR_MARK) - return build2_loc (loc, subcode, type, TREE_OPERAND (arg0, 0), - TREE_OPERAND (arg0, 1)); - } - return NULL_TREE; |