diff options
author | 2015-06-23 18:27:30 +0100 | |
---|---|---|
committer | 2015-06-24 15:02:15 +0100 | |
commit | 69ba7b7112c2277ac225615b37e6df74c055740d (patch) | |
tree | 3177340740abfabd80f055b17ab92fb6e740bd87 /compiler/optimizing/optimization.cc | |
parent | b809daaffdd42dc01457ae06ae83f2d7ebdb5e65 (diff) |
ART: Run GraphChecker after Builder and SsaBuilder
This patch refactors the way GraphChecker is invoked, utilizing the
same scoping mechanism as pass timing and graph visualizer. Therefore,
GraphChecker will now run not just after instances of HOptimization
but after the builders and reg alloc, too.
Change-Id: I8173b98b79afa95e1fcbf3ac9630a873d7f6c1d4
Diffstat (limited to 'compiler/optimizing/optimization.cc')
-rw-r--r-- | compiler/optimizing/optimization.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/compiler/optimizing/optimization.cc b/compiler/optimizing/optimization.cc index c46a21955c..3d769491a5 100644 --- a/compiler/optimizing/optimization.cc +++ b/compiler/optimizing/optimization.cc @@ -16,9 +16,6 @@ #include "optimization.h" -#include "base/dumpable.h" -#include "graph_checker.h" - namespace art { void HOptimization::MaybeRecordStat(MethodCompilationStat compilation_stat, size_t count) const { @@ -27,24 +24,4 @@ void HOptimization::MaybeRecordStat(MethodCompilationStat compilation_stat, size } } -void HOptimization::Check() { - if (kIsDebugBuild) { - if (is_in_ssa_form_) { - SSAChecker checker(graph_->GetArena(), graph_); - checker.Run(); - if (!checker.IsValid()) { - LOG(FATAL) << "Error after " << GetPassName() << ": " - << Dumpable<SSAChecker>(checker); - } - } else { - GraphChecker checker(graph_->GetArena(), graph_); - checker.Run(); - if (!checker.IsValid()) { - LOG(FATAL) << "Error after " << GetPassName() << ": " - << Dumpable<GraphChecker>(checker); - } - } - } -} - } // namespace art |