]> git.ipfire.org Git - thirdparty/zstd.git/commit
lib: add hint to generate more pipeline friendly code (#3138)
authorJun He <jun.he@arm.com>
Fri, 29 Jul 2022 17:28:04 +0000 (01:28 +0800)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2022 17:28:04 +0000 (10:28 -0700)
commitec5fdcde198b4653ef94bbdf4cbadd1656cbcbcb
treed8637c71749ab5a7f14d2ee0d2665ace8690d017
parent558cf20d0dacf9436959ec1ec6a5acb60152ebbb
lib: add hint to generate more pipeline friendly code (#3138)

With statistic data of test data files of silesia
the chance of position beyond highThreshold is very
low (~1.3%@L8 in most cases, all <2.5%), and is in
"lowprob area". Add the branch hint so compiler can
get better pipiline codegen.
With this change it is observed ~1% of mozilla and
xml, and slight (0.3%~0.8%) but consistent uplift on
other files on Arm N1.

Signed-off-by: Jun He <jun.he@arm.com>
Change-Id: Id9ba1d5c767e975290b5c1bf0ecce906544f4ade
lib/decompress/zstd_decompress_block.c