summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimization.h
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-04-20 14:52:42 +0100
committer David Brazdil <dbrazdil@google.com> 2015-04-24 16:19:31 +0100
commit2d7352ba5311b8f57427b91b7a891e61497373c1 (patch)
tree3f3426f4f30663ee252ebc1f02ecd0eb114bad85 /compiler/optimizing/optimization.h
parentc5cb691ca6a746a193bfbe3525aafa7cbb281d40 (diff)
ART: Dead block removal
Adds a new pass which finds all unreachable blocks, typically due to simplifying an if-condition to a constant, and removes them from the graph. The patch also slightly generalizes the graph-transforming operations. Change-Id: Iff7c97f1d10b52886f3cd7401689ebe1bfdbf456
Diffstat (limited to 'compiler/optimizing/optimization.h')
-rw-r--r--compiler/optimizing/optimization.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/optimization.h b/compiler/optimizing/optimization.h
index 8b2028177b..ccf8de9f6a 100644
--- a/compiler/optimizing/optimization.h
+++ b/compiler/optimizing/optimization.h
@@ -48,7 +48,7 @@ class HOptimization : public ValueObject {
void Check();
protected:
- void MaybeRecordStat(MethodCompilationStat compilation_stat) const;
+ void MaybeRecordStat(MethodCompilationStat compilation_stat, size_t count = 1) const;
HGraph* const graph_;
// Used to record stats about the optimization.