summaryrefslogtreecommitdiff
path: root/compiler/optimizing/ssa_phi_elimination.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-10-12 09:05:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-12 09:05:08 +0000
commit0284f43d625f0776ee0586a7cc321e11f5405e8c (patch)
tree983c86ff79f2a5a089bfa44ec27a5f2c5d6206b6 /compiler/optimizing/ssa_phi_elimination.h
parent128acd4b5b34cdd51328de03df085deaa040b864 (diff)
parent52d52f5dc3e005829926e68c656fb27e8b008ae9 (diff)
Merge changes I4bbb21bf,Ie79b46cd,Ia50aafc8
* changes: Use ScopedArenaAllocator in GVN. Use ScopedArenaAllocator for Phi elimination pass. Use ScopedArenaAllocator for building HGraph.
Diffstat (limited to 'compiler/optimizing/ssa_phi_elimination.h')
-rw-r--r--compiler/optimizing/ssa_phi_elimination.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/compiler/optimizing/ssa_phi_elimination.h b/compiler/optimizing/ssa_phi_elimination.h
index e0cde074d6..11d5837eb5 100644
--- a/compiler/optimizing/ssa_phi_elimination.h
+++ b/compiler/optimizing/ssa_phi_elimination.h
@@ -17,7 +17,6 @@
#ifndef ART_COMPILER_OPTIMIZING_SSA_PHI_ELIMINATION_H_
#define ART_COMPILER_OPTIMIZING_SSA_PHI_ELIMINATION_H_
-#include "base/arena_containers.h"
#include "nodes.h"
#include "optimization.h"
@@ -30,10 +29,7 @@ namespace art {
class SsaDeadPhiElimination : public HOptimization {
public:
explicit SsaDeadPhiElimination(HGraph* graph)
- : HOptimization(graph, kSsaDeadPhiEliminationPassName),
- worklist_(graph->GetAllocator()->Adapter(kArenaAllocSsaPhiElimination)) {
- worklist_.reserve(kDefaultWorklistSize);
- }
+ : HOptimization(graph, kSsaDeadPhiEliminationPassName) {}
void Run() OVERRIDE;
@@ -43,10 +39,6 @@ class SsaDeadPhiElimination : public HOptimization {
static constexpr const char* kSsaDeadPhiEliminationPassName = "dead_phi_elimination";
private:
- ArenaVector<HPhi*> worklist_;
-
- static constexpr size_t kDefaultWorklistSize = 8;
-
DISALLOW_COPY_AND_ASSIGN(SsaDeadPhiElimination);
};
@@ -59,20 +51,13 @@ class SsaDeadPhiElimination : public HOptimization {
class SsaRedundantPhiElimination : public HOptimization {
public:
explicit SsaRedundantPhiElimination(HGraph* graph)
- : HOptimization(graph, kSsaRedundantPhiEliminationPassName),
- worklist_(graph->GetAllocator()->Adapter(kArenaAllocSsaPhiElimination)) {
- worklist_.reserve(kDefaultWorklistSize);
- }
+ : HOptimization(graph, kSsaRedundantPhiEliminationPassName) {}
void Run() OVERRIDE;
static constexpr const char* kSsaRedundantPhiEliminationPassName = "redundant_phi_elimination";
private:
- ArenaVector<HPhi*> worklist_;
-
- static constexpr size_t kDefaultWorklistSize = 8;
-
DISALLOW_COPY_AND_ASSIGN(SsaRedundantPhiElimination);
};