diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-02-18 14:48:53 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-02-19 14:01:18 +0000 |
commit | d6138ef1ea13d07ae555542f8898b30d89e9ac9a (patch) | |
tree | a8ffd5fd966512fd280bc1b3214f4e57a9e1805f /compiler/optimizing/graph_visualizer.cc | |
parent | 92095533ac28879ddd8b44b559d700527ca12b8a (diff) | |
download | art-d6138ef1ea13d07ae555542f8898b30d89e9ac9a.zip art-d6138ef1ea13d07ae555542f8898b30d89e9ac9a.tar.gz art-d6138ef1ea13d07ae555542f8898b30d89e9ac9a.tar.bz2 |
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
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index 835bca6..c592737 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); |