tree-ssa-dom.c (class edge_info): Changed from a struct to a class.
authorJeff Law <law@redhat.com>
Tue, 29 Aug 2017 05:03:22 +0000 (23:03 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 29 Aug 2017 05:03:22 +0000 (23:03 -0600)
commita09f784a60ab1685b8711ae6820c77403fe6a299
treea087278536787a055aca7fca3c2991a1967270fd
parentf73e77f714ffa30c2f73dadb61750c6b59e1fd39
tree-ssa-dom.c (class edge_info): Changed from a struct to a class.

* tree-ssa-dom.c (class edge_info): Changed from a struct
to a class.  Add ctor/dtor, methods and data members.
(edge_info::edge_info): Renamed from allocate_edge_info.
Initialize additional members.
(edge_info::~edge_info): New.
(free_dom_edge_info): Delete the edge info.
(record_edge_info): Use new class & associated member functions.
Tighten forms for testing for edge equivalences.
(record_temporary_equivalences): Iterate over the simple
equivalences rather than assuming there's only one per edge.
(cprop_into_successor_phis): Iterate over the simple
equivalences rather than assuming there's only one per edge.
(optimize_stmt): Use operand_equal_p rather than pointer
equality for mini-DSE code.

From-SVN: r251396
gcc/ChangeLog
gcc/tree-ssa-dom.c