diff options
Diffstat (limited to 'compiler/optimizing/optimization.cc')
-rw-r--r-- | compiler/optimizing/optimization.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/optimizing/optimization.cc b/compiler/optimizing/optimization.cc index ea98186d11..b99f6784f7 100644 --- a/compiler/optimizing/optimization.cc +++ b/compiler/optimizing/optimization.cc @@ -21,25 +21,21 @@ namespace art { -void HOptimization::Execute() { - Run(); - visualizer_.DumpGraph(pass_name_); - Check(); -} - void HOptimization::Check() { if (kIsDebugBuild) { if (is_in_ssa_form_) { SSAChecker checker(graph_->GetArena(), graph_); checker.Run(); if (!checker.IsValid()) { - LOG(FATAL) << Dumpable<SSAChecker>(checker); + LOG(FATAL) << "Error after " << GetPassName() << ": " + << Dumpable<SSAChecker>(checker); } } else { GraphChecker checker(graph_->GetArena(), graph_); checker.Run(); if (!checker.IsValid()) { - LOG(FATAL) << Dumpable<GraphChecker>(checker); + LOG(FATAL) << "Error after " << GetPassName() << ": " + << Dumpable<GraphChecker>(checker); } } } |