aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-02-15 10:17:26 -0500
committerAndrew MacLeod <amacleod@redhat.com>2022-05-13 10:20:15 -0400
commitcf2141a0c640fc9b1c497db3f4d5b270f4b8252a (patch)
tree7a2d27079325d796a225a21adf13ea5b89907c08 /gcc/fortran/trans-openmp.cc
parent0ee9a62ef4b718ce7a66051f768c2bf5e1b62263 (diff)
downloadgcc-cf2141a0c640fc9b1c497db3f4d5b270f4b8252a.zip
gcc-cf2141a0c640fc9b1c497db3f4d5b270f4b8252a.tar.gz
gcc-cf2141a0c640fc9b1c497db3f4d5b270f4b8252a.tar.bz2
Add relation between op1 & op2 to lhs_opN_relation API.
We use the relation between op1 and op2 to help fold a statement, but it was not provided to the lhs_op1_relation and lhs_op2_relation routines to determine if is also creates a relation between the LHS and either operand. gcc/ PR tree-optimization/104547 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Add the op1/op2 relation to the relation call. * range-op.cc (*::lhs_op1_relation): Add param. (*::lhs_op2_relation): Ditto. (operator_minus::lhs_op1_relation): New. (range_relational_tests): Add relation param. * range-op.h (lhs_op1_relation, lhs_op2_relation): Adjust prototype. gcc/testsuite/ * g++.dg/pr104547.C: New.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions