diff options
author | Chris Larsen <chris.larsen@imgtec.com> | 2016-04-14 16:16:29 -0700 |
---|---|---|
committer | Chris Larsen <chris.larsen@imgtec.com> | 2016-08-30 10:44:01 -0700 |
commit | 8ca4f97bbb91fad5919d74f8b9d4207969039039 (patch) | |
tree | 33812282256088d1ad41224f90a6d6457a6c32c6 /compiler/optimizing/codegen_test.cc | |
parent | d7eabc2cc1a88c1f7f927da61246ae65aab0626c (diff) |
MIPS32: Additional bitCount optimizations.
The original algorithm computed the 64-bit bitCount by counting the
bits in two 32-bit words (sort of) in parallel. It was recognized that
at some point the subtotals for the words could be added reducing the
total number of operations to count the set bits for the original
64-bit input value. Doing so not only reduced the number of
instructions needed for the computation but also eliminated one
multiply instruction, and, typically, multiply instructions are multi-
cycles instructions.
Test: Boot MIPS32 QEMU and run 564-checker-bitcount tests.
Change-Id: Ifcbb56812a02a91ac1777543448b207ec0e1e5a6
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
0 files changed, 0 insertions, 0 deletions