diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-09-30 13:54:09 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-10-06 18:52:56 +0100 |
commit | 26a25ef62a13f409f941aa39825a51b4d6f0f047 (patch) | |
tree | aa0ed991cfcea17297e85f74624a44e32e8913cf /compiler/optimizing/graph_visualizer.cc | |
parent | 17b1c174dddb1d83018740c2084ab42daa812fff (diff) |
Add a prepare for register allocation pass.
- Currently the pass just changes the uses of checks to the
actual values.
- Also optimize array access, now that inputs can be constants.
- And fix another bug in the register allocator reveiled by
this change.
Change-Id: I43be0dbde9330ee5c8f9d678de11361292d8bd98
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index 0fb4737db2..686a0b0031 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -158,6 +158,7 @@ class HGraphVisualizerPrinter : public HGraphVisitor { } } output_ << ")"; + output_ << " (liveness: " << instruction->GetLifetimePosition() << ")"; } void VisitInstruction(HInstruction* instruction) { @@ -191,6 +192,7 @@ class HGraphVisualizerPrinter : public HGraphVisitor { DumpLocation(locations->Out(), instruction->GetType()); } } + output_ << " (liveness: " << instruction->GetLifetimePosition() << ")"; } } |