summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/register_allocator.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-07-18 10:23:59 +0100
committerNicolas Geoffray <ngeoffray@google.com>2014-07-18 10:23:59 +0100
commit93bedb7a96c8e6f9b6caa66689bf4f3c520bc234 (patch)
tree0f8cf8717de1ca9fa81b6517030d2ffa160377a1 /compiler/optimizing/register_allocator.h
parentb2a59010b787bd9d5d9bf36d32682faa5ad8da24 (diff)
downloadart-93bedb7a96c8e6f9b6caa66689bf4f3c520bc234.tar.gz
art-93bedb7a96c8e6f9b6caa66689bf4f3c520bc234.tar.bz2
art-93bedb7a96c8e6f9b6caa66689bf4f3c520bc234.zip
We can also run the linear scan register allocator on thumb.
Change-Id: I5d21b5cbcdd93ff36342111de4ebcaab172034dd
Diffstat (limited to 'compiler/optimizing/register_allocator.h')
-rw-r--r--compiler/optimizing/register_allocator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/register_allocator.h b/compiler/optimizing/register_allocator.h
index e35ff56c75..be1c7ec7c6 100644
--- a/compiler/optimizing/register_allocator.h
+++ b/compiler/optimizing/register_allocator.h
@@ -66,7 +66,10 @@ class RegisterAllocator {
static bool CanAllocateRegistersFor(const HGraph& graph, InstructionSet instruction_set);
static bool Supports(InstructionSet instruction_set) {
- return instruction_set == kX86 || instruction_set == kArm || instruction_set == kX86_64;
+ return instruction_set == kX86
+ || instruction_set == kArm
+ || instruction_set == kX86_64
+ || instruction_set == kThumb2;
}
size_t GetNumberOfSpillSlots() const {