diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-02-14 19:43:40 -0500 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-02-15 17:03:27 -0500 |
commit | e15425e899e4a9eec768cf74aaf36cdbf1d29913 (patch) | |
tree | 19d92086586f3e8f60f478030c89710f2a6f41e9 /gcc/d/expr.cc | |
parent | 84832cab6e43db7fa10ec53d15f8f8457aa31080 (diff) | |
download | gcc-e15425e899e4a9eec768cf74aaf36cdbf1d29913.zip gcc-e15425e899e4a9eec768cf74aaf36cdbf1d29913.tar.gz gcc-e15425e899e4a9eec768cf74aaf36cdbf1d29913.tar.bz2 |
Use GORI to evaluate arguments of a COND_EXPR.
Provide an API into gori to perform a basic evaluation of the arguments of a
COND_EXPR if they are in the dependency chain of the condition.
PR tree-optimization/104526
gcc/
* gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Call
new routine.
* gimple-range-gori.cc (range_def_chain::get_def_chain): Force a build
of dependency chain if there isn't one.
(gori_compute::condexpr_adjust): New.
* gimple-range-gori.h (class gori_compute): New prototype.
gcc/testsuite/
* gcc.dg/pr104526.c: New.
Diffstat (limited to 'gcc/d/expr.cc')
0 files changed, 0 insertions, 0 deletions