diff options
Diffstat (limited to 'gcc/tree-ssa-uncprop.c')
-rw-r--r-- | gcc/tree-ssa-uncprop.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gcc/tree-ssa-uncprop.c b/gcc/tree-ssa-uncprop.c index 28ff546c627..5255d7fb738 100644 --- a/gcc/tree-ssa-uncprop.c +++ b/gcc/tree-ssa-uncprop.c @@ -26,7 +26,11 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "basic-block.h" #include "function.h" -#include "tree-ssa.h" +#include "gimple.h" +#include "gimple-ssa.h" +#include "tree-cfg.h" +#include "tree-phinodes.h" +#include "ssa-iterators.h" #include "domwalk.h" #include "tree-pass.h" #include "tree-ssa-propagate.h" @@ -357,15 +361,7 @@ record_equiv (tree value, tree equivalence) class uncprop_dom_walker : public dom_walker { public: - uncprop_dom_walker (cdi_direction direction) - : dom_walker (direction) - { - m_equiv_stack.create (2); - } - ~uncprop_dom_walker () - { - m_equiv_stack.release (); - } + uncprop_dom_walker (cdi_direction direction) : dom_walker (direction) {} virtual void before_dom_children (basic_block); virtual void after_dom_children (basic_block); @@ -376,7 +372,7 @@ private: leading to this block. If no such edge equivalency exists, then we record NULL. These equivalences are live until we leave the dominator subtree rooted at the block where we record the equivalency. */ - vec<tree> m_equiv_stack; + stack_vec<tree, 2> m_equiv_stack; }; /* Main driver for un-cprop. */ |