Misc range temporary fixes.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 2 Jun 2022 17:52:41 +0000 (19:52 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 3 Jun 2022 08:31:01 +0000 (10:31 +0200)
commit0fd3c7063db52b8f509a9572ff8078a0f91176da
treef9937a174a2a9768856cf73b4a4413a3eb60ce38
parentf4fa81ba63299030d068327f3d90920de8c54d1c
Misc range temporary fixes.

This fixes a couples places that were using int_range_max, but needed
a generic temporary.  Found while merging the frange work.

Also, copying between range temporaries is actually useful :).

Tested on x86-64 Linux.

gcc/ChangeLog:

* gimple-range-cache.cc (ranger_cache::range_from_dom): Use
Value_Range.
* gimple-range.cc (gimple_ranger::register_inferred_ranges): Same.
* value-range.h (Value_Range::Value_Range): Implement copy
constructor for Value_Range.
gcc/gimple-range-cache.cc
gcc/gimple-range.cc
gcc/value-range.h