From 9b3acf7e0c45c84e01bab709531be6d26d2a6562 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Fri, 22 Mar 2024 14:08:46 +0000 Subject: 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 --- compiler/driver/compiler_options.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'compiler/driver/compiler_options.cc') 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::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& options, bool ignore_unrecognized, std::string* error_msg) { -- cgit v1.2.3-59-g8ed1b