diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-10-20 09:17:12 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-10-20 15:53:22 +0200 |
commit | 5bcd7de6402595fcaefcf1305e053fcb47dfc424 (patch) | |
tree | e03de5dd59aa5348bb548c475aacde7319090c13 /libcpp/internal.h | |
parent | f7378bbf4778a09ccdf7e46dd81731ea4f7d638b (diff) | |
download | gcc-5bcd7de6402595fcaefcf1305e053fcb47dfc424.zip gcc-5bcd7de6402595fcaefcf1305e053fcb47dfc424.tar.gz gcc-5bcd7de6402595fcaefcf1305e053fcb47dfc424.tar.bz2 |
Simplify and split irange::copy_legacy_range into two functions.
copy_legacy_range was a small but complex function. It was tricky
to understand, and easy to introduce bugs into it. It also did
unnecessary work on some code paths.
This patch splits the function into two functions that are more
efficient and easier to read (copy_to_legacy and
copy_legacy_to_multi_range).
gcc/ChangeLog:
* value-range.cc (irange::operator=): Split up call to
copy_legacy_range into...
(irange::copy_to_legacy): ...this.
(irange::copy_legacy_to_multi_range): ...and this.
(irange::copy_legacy_range): Remove.
* value-range.h: Remove copoy_legacy_range.
Add copy_legacy_to_multi_range and copy_to_legacy.
Diffstat (limited to 'libcpp/internal.h')
0 files changed, 0 insertions, 0 deletions