[PATCH] Move code out of tree-ssa-dom into tree-ssa-scopedtables
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Sep 2015 17:25:51 +0000 (17:25 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Sep 2015 17:25:51 +0000 (17:25 +0000)
commit3149d5c3320480955bff81970f33b419901844bb
tree97c6ebe9050734b2f4b82e181065b4e23f7f0fde
parent12373dd5ab95103826822ce72224f18a97d046fc
[PATCH] Move code out of tree-ssa-dom into tree-ssa-scopedtables

PR tree-optimization/47679
* tree-ssa-dom.c (enum expr_kind): Moved from here to
tree-ssa-scopedtables.h.
(struct hashable_expr, class expr_hash_elt): Likewise.
(struct expr_elt_hasher, class avail_exprs_stack): Likewise.
Move associated methods into tree-ssa-scopedtables.c.
(avail_expr_hash, initialize_expr_from_cond): Similarly.
(hashable_expr_equal_p, add_expr_commutative): Likewise.
(add_hashable_expr): Likewise.
(record_cond): Delete element directly.
* tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
private copy ctor and assignment operator methods.
(expr_elt_hasher): Inline trivial methods.
(initialize_expr_from_cond): Prototype.
* tree-ssa-scopedtables.c: Add necessary includes, functions and
methods that were previously in tree-ssa-dom.c.  Improve various
comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227831 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-dom.c
gcc/tree-ssa-scopedtables.c
gcc/tree-ssa-scopedtables.h