diff options
| author | 2015-12-09 16:00:33 +0000 | |
|---|---|---|
| committer | 2015-12-09 16:00:33 +0000 | |
| commit | edacb55f89a7e9744fded94b55aefaca7b2e9e57 (patch) | |
| tree | ae5e2333b86308bcf8a5e120ce288a82a721073f /compiler/optimizing/builder.h | |
| parent | 783b80fe6725a50e75b2a80e634964dcd30ebe47 (diff) | |
| parent | 917ec0f541eb802cdbf13b5a86e1cb8098d2eb06 (diff) | |
Merge "ART: Reduce the instructions generated by packed switch." am: 2c1164c2ae
am: 917ec0f541
* commit '917ec0f541eb802cdbf13b5a86e1cb8098d2eb06':
ART: Reduce the instructions generated by packed switch.
Diffstat (limited to 'compiler/optimizing/builder.h')
| -rw-r--r-- | compiler/optimizing/builder.h | 5 |
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 |