diff options
author | Richard Biener <rguenther@suse.de> | 2016-02-15 13:49:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-02-15 13:49:42 +0000 |
commit | 5d30c58de42718a6b9883e9dc94627c898d350f9 (patch) | |
tree | b435823f67bbc75ba9b2daef9cdfce601758656e /gcc | |
parent | 53250f44c0f26227b95304dab5bf3261f0f4404f (diff) | |
download | gcc-5d30c58de42718a6b9883e9dc94627c898d350f9.zip gcc-5d30c58de42718a6b9883e9dc94627c898d350f9.tar.gz gcc-5d30c58de42718a6b9883e9dc94627c898d350f9.tar.bz2 |
re PR tree-optimization/69595 (Bogus -Warray-bound warning due to missed optimization)
2016-02-15 Richard Biener <rguenther@suse.de>
PR tree-optimization/69595
* match.pd: Complete range test simplification to true.
From-SVN: r233425
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/match.pd | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61118d2..94be7b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/match.pd b/gcc/match.pd index ebd2eed..a0c6a3a 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -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)) |