summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-12-17 16:46:19 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-12-17 16:46:19 +0000
commit14c4e90f67e71430dade7d4f20920e6352be386e (patch)
tree2d376e0d6f833bb87348faae12ad7ed3bf15b95b /compiler/optimizing/builder.h
parent6132a3884a912a704010f22ea2991f3d9d432af2 (diff)
parentf3e0ee27f46aa6434b900ab33f12cd3157578234 (diff)
Merge "Revert "Revert "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