diff options
author | 2024-03-22 14:08:46 +0000 | |
---|---|---|
committer | 2024-04-04 20:14:11 +0000 | |
commit | 9b3acf7e0c45c84e01bab709531be6d26d2a6562 (patch) | |
tree | 6c9350db3ab2e428e90541886877a2fadbf78118 /compiler/driver/compiler_options.cc | |
parent | 97cf36494e4f63d8fe45f0ad21cb9f996c662eb2 (diff) |
Remove RegisterAllocator::Strategy
It has been obsolete since graph color was removed.
Bug: 281793697
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Test: m test-art-host-gtest
Change-Id: I8b42b0fe39a8601da7aa1288a8581ab8b4742614
Diffstat (limited to 'compiler/driver/compiler_options.cc')
-rw-r--r-- | compiler/driver/compiler_options.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc index 36943a0dd1..87dbfee412 100644 --- a/compiler/driver/compiler_options.cc +++ b/compiler/driver/compiler_options.cc @@ -80,7 +80,6 @@ CompilerOptions::CompilerOptions() initialize_app_image_classes_(false), check_profiled_methods_(ProfileMethodsCheck::kNone), max_image_block_size_(std::numeric_limits<uint32_t>::max()), - register_allocation_strategy_(RegisterAllocator::kRegisterAllocatorDefault), passes_to_run_(nullptr) { } @@ -115,20 +114,6 @@ bool CompilerOptions::ParseDumpInitFailures(const std::string& option, std::stri return true; } -bool CompilerOptions::ParseRegisterAllocationStrategy(const std::string& option, - std::string* error_msg) { - if (option == "linear-scan") { - register_allocation_strategy_ = RegisterAllocator::Strategy::kRegisterAllocatorLinearScan; - } else if (option == "graph-color") { - LOG(ERROR) << "Graph coloring allocator has been removed, using linear scan instead."; - register_allocation_strategy_ = RegisterAllocator::Strategy::kRegisterAllocatorLinearScan; - } else { - *error_msg = "Unrecognized register allocation strategy. Try linear-scan."; - return false; - } - return true; -} - bool CompilerOptions::ParseCompilerOptions(const std::vector<std::string>& options, bool ignore_unrecognized, std::string* error_msg) { |