]> git.ipfire.org Git - thirdparty/gcc.git/commit
frange: Make the setter taking trees a wrapper.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 23 Sep 2022 11:05:26 +0000 (13:05 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 23 Sep 2022 12:58:53 +0000 (14:58 +0200)
commitab0f70a63011ff06eea64960e3b8ca66575bfdaf
treed05967b357adf863b6ed3b3c988dac873cfabd90
parent4ceb5bc42d9d703bac5c98b94c639ef9438aaede
frange: Make the setter taking trees a wrapper.

The frange setter does all its work in trees.  This incurs a penalty
for the real_value variants because they must wrap their arguments
into a tree and pass it to the tree setter, which will then do the
opposite.  This is leftovers from the irange setter.

Even though the we still need constructors taking trees so we can
interact with the tree world, there's no sense penalizing the rest of
the implementation.

Tested on x86-64 Linux.

gcc/ChangeLog:

* value-range.cc (frange::set): Swap setters such that the one
accepting REAL_VALUE_TYPE does all the work.
gcc/value-range.cc