aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-04-17 14:24:15 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-04-26 15:42:50 +0200
commit778032166d960d97541e652c59684d1187d0233c (patch)
treef1308637d63494986959d0346435372079fc082a /gcc/tree-vrp.c
parent6ff66d1ea48960fe96bb51a750c01135e65fe452 (diff)
downloadgcc-778032166d960d97541e652c59684d1187d0233c.zip
gcc-778032166d960d97541e652c59684d1187d0233c.tar.gz
gcc-778032166d960d97541e652c59684d1187d0233c.tar.bz2
Replace !irange::undefined_p checks with num_ranges > 0 for readability.
A few of the undefined_p checks in the irange code are really checking if there are sub-ranges. It just so happens that undefined_p is implemented with num_ranges > 0, so it was a shorthand used throughout. This shorthand was making the code unreadable. gcc/ChangeLog: * value-range.cc (irange::legacy_lower_bound): Replace !undefined_p check with num_ranges > 0. (irange::legacy_upper_bound): Same. * value-range.h (irange::type): Same. (irange::lower_bound): Same. (irange::upper_bound): Same.
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions