2015-12-01 Richard Biener <rguenther@suse.de>
PR middle-end/68590
* match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
From-SVN: r231100
+2015-12-01 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/68590
+ * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
+
2015-12-01 Jan Hubicka <hubicka@ucw.cz>
* ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
/* Simplify comparison of something with itself. For IEEE
floating-point, we can only do some of these simplifications. */
-(simplify
- (eq @0 @0)
- (if (! FLOAT_TYPE_P (TREE_TYPE (@0))
- || ! HONOR_NANS (TYPE_MODE (TREE_TYPE (@0))))
- { constant_boolean_node (true, type); }))
-(for cmp (ge le)
+(for cmp (eq ge le)
(simplify
(cmp @0 @0)
- (eq @0 @0)))
+ (if (! FLOAT_TYPE_P (TREE_TYPE (@0))
+ || ! HONOR_NANS (TYPE_MODE (TREE_TYPE (@0))))
+ { constant_boolean_node (true, type); }
+ (if (cmp != EQ_EXPR)
+ (eq @0 @0)))))
(for cmp (ne gt lt)
(simplify
(cmp @0 @0)