diff options
author | Alexandre Rames <alexandre.rames@arm.com> | 2015-04-09 18:30:21 +0100 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2015-04-10 16:19:55 +0000 |
commit | 188d4316a880ae24aed315aa52dc503c4fcb1ec7 (patch) | |
tree | a480bdc4a80f63d46abcde2ef7a36e1ad072d624 /compiler/optimizing/optimizing_compiler_stats.h | |
parent | 27ef3177fb164b5e1a3b8a6fd43d25f3074e586d (diff) |
Opt compiler: Instruction simplification for HAdd, HNeg, HNot, HSub.
Under assumptions for the 'cost' of each IR (eg. neither HAdd nor HSub
are faster than the other), transformations are only applied if they
(locally) cannot degrade the quality of the graph. The code could be
extended to look at uses of the IRs and detect more opportunities for
optimisations. The optimisations in this patch do not look at other
uses for their inputs.
Change-Id: Ib60dab007af30f43421ef5bb55db2ec32fb8fc0c
Diffstat (limited to 'compiler/optimizing/optimizing_compiler_stats.h')
-rw-r--r-- | compiler/optimizing/optimizing_compiler_stats.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/optimizing_compiler_stats.h b/compiler/optimizing/optimizing_compiler_stats.h index b97a66719d..4d5b8d0639 100644 --- a/compiler/optimizing/optimizing_compiler_stats.h +++ b/compiler/optimizing/optimizing_compiler_stats.h @@ -47,6 +47,7 @@ enum MethodCompilationStat { kNotCompiledUnhandledInstruction, kRemovedCheckedCast, kRemovedNullCheck, + kInstructionSimplifications, kLastStat }; @@ -110,6 +111,7 @@ class OptimizingCompilerStats { case kNotCompiledUnhandledInstruction : return "kNotCompiledUnhandledInstruction"; case kRemovedCheckedCast: return "kRemovedCheckedCast"; case kRemovedNullCheck: return "kRemovedNullCheck"; + case kInstructionSimplifications: return "kInstructionSimplifications"; default: LOG(FATAL) << "invalid stat"; } return ""; |