aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-cache.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-02-06 13:07:01 -0500
committerAndrew MacLeod <amacleod@redhat.com>2023-02-10 09:46:33 -0500
commit99f3ad2e5b117ee79a6dcf97288261e2fa32ab4c (patch)
tree831646b70330811f9ed4355be0e3316c7eab73fd /gcc/gimple-range-cache.cc
parentedfc4402504fd512ba469219e2ed637f2921a1c2 (diff)
downloadgcc-99f3ad2e5b117ee79a6dcf97288261e2fa32ab4c.zip
gcc-99f3ad2e5b117ee79a6dcf97288261e2fa32ab4c.tar.gz
gcc-99f3ad2e5b117ee79a6dcf97288261e2fa32ab4c.tar.bz2
Add function context for querying global ranges.
When processing arguments for assume functions, call get_global_range directly and utilize a function context pointer to avoid any assumptions about using cfun. PR tree-optimization/108520 gcc/ * gimple-range-infer.cc (check_assume_func): Invoke gimple_range_global directly instead using global_range_query. * value-query.cc (get_range_global): Add function context and avoid calling nonnull_arg_p if not cfun. (gimple_range_global): Add function context pointer. * value-query.h (imple_range_global): Add function context. gcc/testsuite/ * g++.dg/pr108520.C: New.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
0 files changed, 0 insertions, 0 deletions