From d6138ef1ea13d07ae555542f8898b30d89e9ac9a Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 18 Feb 2015 14:48:53 +0000 Subject: Ensure the graph is correctly typed. We used to be forgiving because of HIntConstant(0) also being used for null. We now create a special HNullConstant for such uses. Also, we need to run the dead phi elimination twice during ssa building to ensure the correctness. Change-Id: If479efa3680d3358800aebb1cca692fa2d94f6e5 --- compiler/optimizing/graph_visualizer.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/graph_visualizer.cc') diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index 835bca688f..c59273753e 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -184,6 +184,10 @@ class HGraphVisualizerPrinter : public HGraphVisitor { output_ << " " << instruction->GetValue(); } + void VisitPhi(HPhi* phi) OVERRIDE { + output_ << " " << phi->GetRegNumber(); + } + void PrintInstruction(HInstruction* instruction) { output_ << instruction->DebugName(); instruction->Accept(this); -- cgit v1.2.3