diff options
author | Jeff Law <law@redhat.com> | 2015-09-18 13:12:22 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-09-18 13:12:22 -0600 |
commit | 1b2fe7d3f73ccec0ab13a1b9fa68356dab52d9d4 (patch) | |
tree | ef3a3f2d651a8a3df1740bb1002c0178bde1c455 /gcc/tree-ssa-scopedtables.h | |
parent | 5877e54ea0ab4f38f9046a12633de4fa6671e925 (diff) | |
download | gcc-1b2fe7d3f73ccec0ab13a1b9fa68356dab52d9d4.zip gcc-1b2fe7d3f73ccec0ab13a1b9fa68356dab52d9d4.tar.gz gcc-1b2fe7d3f73ccec0ab13a1b9fa68356dab52d9d4.tar.bz2 |
[PATCH] avail_exprs is no longer file scoped
* tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
it into the avail_exprs_stack class.
(pass_dominator::execute): Corresponding changes to declaration
and initialization of avail_exprs. Pass avail_exprs to
dump_dominator_optimization_stats.
(record_cond): Extract avail_exprs from avail_exprs_stack.
(lookup_avail_expr): Similarly.
(htab_staticstics): Remove unnecessary prototype. Move to earlier
position in file.
(dump_dominator_optimization_stats): Make static and prototype.
Add argument for the hash table to dump.
(debug_dominator_optimization_stats): Remove.
* tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
prototype.
(debug_dominator_optimization_stats): Similarly.
* tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
"void" in prototype for pop_to_marker method. Add accessor method
for the underlying avail_exprs table.
* tree-ssa-threadedge.c: Remove trailing whitespace.
From-SVN: r227921
Diffstat (limited to 'gcc/tree-ssa-scopedtables.h')
-rw-r--r-- | gcc/tree-ssa-scopedtables.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree-ssa-scopedtables.h b/gcc/tree-ssa-scopedtables.h index f37230e..152df51 100644 --- a/gcc/tree-ssa-scopedtables.h +++ b/gcc/tree-ssa-scopedtables.h @@ -122,11 +122,16 @@ class avail_exprs_stack /* Restore the AVAIL_EXPRs table to its state when the last marker was pushed. */ - void pop_to_marker (); + void pop_to_marker (void); /* Record a single available expression that can be unwound. */ void record_expr (expr_hash_elt_t, expr_hash_elt_t, char); + /* Get the underlying hash table. Would this be better as + class inheritance? */ + hash_table<expr_elt_hasher> *avail_exprs (void) + { return m_avail_exprs; } + private: vec<std::pair<expr_hash_elt_t, expr_hash_elt_t> > m_stack; hash_table<expr_elt_hasher> *m_avail_exprs; |