summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2017-11-06 20:01:17 -0800
committer Andreas Gampe <agampe@google.com> 2017-11-07 12:20:59 -0800
commitcac31ad4c43a24a959a4d3652b8b46538bdc8c53 (patch)
treefca3149e0ebf0817c859b9f7faa5098d230608c4 /compiler/driver/compiler_options.cc
parent3b5df92d613bb72c8e6f8a766c60835d8313414f (diff)
ART: Add compiler option for code deduplication
Add --deduplicate-code and --no-deduplicate-code to ease in experiments with deduplication, e.g., profiling. Add dex2oat test. Test: m test-art-host Change-Id: Ib6c7fe082f43c5f76c8463cc563e2503c9a50480
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r--compiler/driver/compiler_options.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc
index f789314114..032763cdff 100644
--- a/compiler/driver/compiler_options.cc
+++ b/compiler/driver/compiler_options.cc
@@ -56,6 +56,7 @@ CompilerOptions::CompilerOptions()
dump_cfg_file_name_(""),
dump_cfg_append_(false),
force_determinism_(false),
+ deduplicate_code_(true),
register_allocation_strategy_(RegisterAllocator::kRegisterAllocatorDefault),
passes_to_run_(nullptr) {
}