]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove shadowed oracle field.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 1 Oct 2021 10:27:55 +0000 (12:27 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 1 Oct 2021 12:43:54 +0000 (14:43 +0200)
commit75d053df7271cc0f841d3790196a14c896214bb4
treeaafef2d2c632979e9e61bd7be383816cf857098e
parent9c1a633d96926357155d4702b66f8a0ec856a81f
Remove shadowed oracle field.

The m_oracle field in the path solver was shadowing the base class.
This was causing subtle problems while calculating outgoing edges
between blocks, because the query object being passed did not have an
oracle set.

This should further improve our solving ability.

Tested on x86-64 Linux.

gcc/ChangeLog:

* gimple-range-path.cc (path_range_query::compute_ranges): Use
get_path_oracle.
* gimple-range-path.h (class path_range_query): Remove shadowed
m_oracle field.
(path_range_query::get_path_oracle): New.
gcc/gimple-range-path.cc
gcc/gimple-range-path.h