]> git.ipfire.org Git - thirdparty/gcc.git/commit
[range-ops] Add tree code to range_operator.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 10 Nov 2022 10:15:52 +0000 (11:15 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 11 Nov 2022 13:52:09 +0000 (14:52 +0100)
commit17586bdc34ba7c23e4af1277649c59e5308f843d
treee0518afd6257beedff413d4e421d00fbac165cba
parentaf96500eea72c674a5686b35c66202ef2bd9688f
[range-ops] Add tree code to range_operator.

This patch adds a tree code to range_operator in order to known which
tree code to pass into bit-CCP.

Up to now range-ops has been free of tree details, with the exception
of the div entries which use a tree code to differentiate between
them.  This is still the goal going forward, but this is a stop-gap
until we can merge the CCP and range-op bit handling in the next
release.

No change in performance.

gcc/ChangeLog:

* range-op.cc: (range_op_table::set): Set m_code.
(integral_table::integral_table): Handle shared entries.
(pointer_table::pointer_table): Same.
* range-op.h (class range_operator): Add m_code.
gcc/range-op.cc
gcc/range-op.h