summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-12-09 15:58:12 +0000
committer android-build-merger <android-build-merger@google.com> 2015-12-09 15:58:12 +0000
commit917ec0f541eb802cdbf13b5a86e1cb8098d2eb06 (patch)
tree34a2693a4642071cd53a619323a824f37e232d5c /compiler/optimizing/builder.h
parent7678a1a0609cc9e0ed25cea5b473d3f098c09338 (diff)
parent2c1164c2aea94e4dfc5bf21785557240c832bcd2 (diff)
Merge "ART: Reduce the instructions generated by packed switch."
am: 2c1164c2ae * commit '2c1164c2aea94e4dfc5bf21785557240c832bcd2': ART: Reduce the instructions generated by packed switch.
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index c3979f3dd1..ca71c32802 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -90,8 +90,9 @@ class HGraphBuilder : public ValueObject {
static constexpr const char* kBuilderPassName = "builder";
- // The number of entries in a packed switch before we use a jump table.
- static constexpr uint16_t kSmallSwitchThreshold = 5;
+ // The number of entries in a packed switch before we use a jump table or specified
+ // compare/jump series.
+ static constexpr uint16_t kSmallSwitchThreshold = 3;
private:
// Analyzes the dex instruction and adds HInstruction to the graph