diff options
author | David Brazdil <dbrazdil@google.com> | 2015-01-23 10:39:45 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2015-01-26 16:13:57 +0000 |
commit | ed59619b370ef23ffbb25d1d01f615e60a9262b6 (patch) | |
tree | 6c93bb6ceff95f7aaf232825e050eecc05c7282d /compiler/optimizing/graph_visualizer.cc | |
parent | f90eec005997f98c1a9f874fbbf68414e5f9c766 (diff) | |
download | android_art-ed59619b370ef23ffbb25d1d01f615e60a9262b6.tar.gz android_art-ed59619b370ef23ffbb25d1d01f615e60a9262b6.tar.bz2 android_art-ed59619b370ef23ffbb25d1d01f615e60a9262b6.zip |
Optimizing: Speed up HEnvironment use removal
Removal of use records from HEnvironment vregs involved iterating over
potentially large linked lists which made compilation of huge methods
very slow. This patch turns use lists into doubly-linked lists, stores
pointers to the relevant nodes inside HEnvironment and subsequently
turns the removals into constant-time operations.
Change-Id: I0e1d4d782fd624e7b8075af75d4adf0a0634a1ee
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index d7dcb4c5db..c606bd7a29 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -225,7 +225,7 @@ class HGraphVisualizerPrinter : public HGraphVisitor { HInstruction* instruction = it.Current(); AddIndent(); int bci = 0; - output_ << bci << " " << instruction->NumberOfUses() + output_ << bci << " " << instruction->ExpensiveComputeNumberOfUses() << " " << GetTypeId(instruction->GetType()) << instruction->GetId() << " "; PrintInstruction(instruction); output_ << kEndInstructionMarker << std::endl; |