diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-08-01 10:32:37 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-08-01 10:32:37 +0200 |
commit | da98e3b126ee9976c24a1e64b99219b3444b4873 (patch) | |
tree | 96a9392946ef93061a405cb399b0b97f0c17b674 /gcc/fortran/expr.c | |
parent | ff03930a11f3a996e512ed3613eedc1b50ac5b30 (diff) | |
download | gcc-da98e3b126ee9976c24a1e64b99219b3444b4873.zip gcc-da98e3b126ee9976c24a1e64b99219b3444b4873.tar.gz gcc-da98e3b126ee9976c24a1e64b99219b3444b4873.tar.bz2 |
re PR tree-optimization/81588 (Wrong code at -O2)
PR tree-optimization/81588
* tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
ranges[i].in_p, invert comparison code ccode. For >/>=,
swap rhs1 and rhs2 and comparison code unconditionally,
for </<= don't do that. Don't swap rhs1/rhs2 again if
ranges[i].in_p, instead invert comparison code ccode if
opcode or oe->rank is BIT_IOR_EXPR.
* gcc.dg/tree-ssa/pr81588.c: New test.
* gcc.dg/pr81588.c: New test.
* gcc.c-torture/execute/pr81588.c: New test.
From-SVN: r250760
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions