From 82091dad38f3e5bfaf3b6984c9ab73069fb68310 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 26 Jan 2015 10:02:45 +0000 Subject: Implement LICM in optimizing compiler. Change-Id: I9c8afb0a58ef45e568576015473cbfd5f011c242 --- compiler/optimizing/graph_visualizer.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compiler/optimizing/graph_visualizer.cc') diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index ef461d9ac5..22a3d124f1 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -18,6 +18,7 @@ #include "code_generator.h" #include "nodes.h" +#include "optimization.h" #include "ssa_liveness_analysis.h" namespace art { @@ -216,6 +217,14 @@ class HGraphVisualizerPrinter : public HGraphVisitor { } } output_ << " (liveness: " << instruction->GetLifetimePosition() << ")"; + } else if (pass_name_ == kLoopInvariantCodeMotionPassName) { + output_ << " ( loop_header:"; + HLoopInformation* info = instruction->GetBlock()->GetLoopInformation(); + if (info == nullptr) { + output_ << "null )"; + } else { + output_ << "B" << info->GetHeader()->GetBlockId() << " )"; + } } } -- cgit v1.2.3