summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.h
diff options
context:
space:
mode:
authorZheng Xu <zheng.xu@linaro.org>2015-12-07 17:17:03 +0800
committerMark Mendell <mark.p.mendell@intel.com>2015-12-08 13:14:10 -0500
commit59f054d98f519a3efa992b1c688eb97bdd8bbf55 (patch)
tree83d5a75bf26238ff1789569de62e4b72fb348119 /compiler/common_compiler_test.h
parent763fd2d3d131898cad6295a19ae9a30e22ce5f2a (diff)
ART: Reduce the instructions generated by packed switch.
Implement Vladimir Marko's suggestion. The new compare/jump series reduce the number of instructions from (2*n+1) to (1.5*n+3). Generate normal compare/jump series when numEntries <= 3. Generate optimal compare/jump series when numEntries <= threshold. Generate jump tables otherwise. Change-Id: I425547b6787057c7fa84e71f17c145b63b208633
Diffstat (limited to 'compiler/common_compiler_test.h')
0 files changed, 0 insertions, 0 deletions