]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/69595 (Bogus -Warray-bound warning due to missed optimization)
authorRichard Biener <rguenther@suse.de>
Mon, 15 Feb 2016 13:49:42 +0000 (13:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 15 Feb 2016 13:49:42 +0000 (13:49 +0000)
2016-02-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69595
* match.pd: Complete range test simplification to true.

From-SVN: r233425

gcc/ChangeLog
gcc/match.pd

index 61118d222bac8ef2b251d6b26d6df954c3c17771..94be7b3901043f45c1c65b066375c87a330fe2f7 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-15  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/69595
+       * match.pd: Complete range test simplification to true.
+
 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
 
        PR rtl-optimization/69648
index ebd2eed1985aba74dd0aff2cc62bca46f2274192..a0c6a3a7a836a68e8d55cbc3f18365334b0116ba 100644 (file)
@@ -2119,8 +2119,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
 
 /* Simple range test simplifications.  */
 /* A < B || A >= B -> true.  */
-(for test1 (lt le ne)
-     test2 (ge gt eq)
+(for test1 (lt le le le ne ge)
+     test2 (ge gt ge ne eq ne)
  (simplify
   (bit_ior:c (test1 @0 @1) (test2 @0 @1))
   (if (INTEGRAL_TYPE_P (TREE_TYPE (@0))