]> granicus.if.org Git - libvpx/commit
Simplify address arithmetic in vp9_optimize_b
authorGabriel Marin <gmx@chromium.org>
Wed, 14 Dec 2016 00:22:48 +0000 (16:22 -0800)
committerJames Zern <jzern@google.com>
Mon, 19 Dec 2016 21:10:04 +0000 (13:10 -0800)
commit0549f5aae91b7d2f1265cea7e2edf34fda8f0433
tree849dd360d9c7f9de4d8e03f464fa9dd1ae0ddad4
parent9b63cb057a73fa1f053dfd665b23fb944a083443
Simplify address arithmetic in vp9_optimize_b

Simplify address arithmetic on token_costs to reduce the number of generated
instructions that are used for address arithmetic inside routine
vp9_optimize_b. It also helps improve instruction scheduling depending on
compiler and optimization level.

Measured a 9.3% reduction in retired instructions and 5.3% reduction in
execution time for this routine with GCC v4.8.4 and optimization flags -O3,
and a reduction of up to 11.6% in execution time with other compilers.

No change in behavior.

TEST=Verified that encoded files match bit for bit, with and without this
change.
BUG=b/33678225

Change-Id: I6098650fb5cd2aa04e014fe6e68ca20761f3a21f
vp9/encoder/vp9_encodemb.c