DescriptionReland "Integrate SIMD optimisations for zlib"
This reland adds an MSan suppression entry to work around gaps in MSan's
support for some of the intrinsics this patch uses. This version also inlines
the insert_string_sse function as it uses inline assembly and therefore does
not need to be in the static library.
Original CL: https://codereview.chromium.org/552123005
These optimisations have been published on zlib mailing list and at
https://github.com/jtkukunas/zlib/
This change merges the following optimisation patches:
- "For x86, add CPUID check."
- "Adds SSE2 optimized hash shifting to fill_window."
- "add SSE4.2 optimized hash function"
- "add PCLMULQDQ optimized CRC folding"
From Jim Kukunas <james.t.kukunas@linux.intel.com>; and adapts them to the
current zlib version in Chromium.
The optimisations are enabled at runtime if all the necessary CPU features are
present. As the optimisations require extra cflags to enable the compiler to
use the instructions the optimisations are held in their own static library
with a stub implementation to allow linking on other platforms.
TEST=net_unittests(GZipUnitTest) passes, Chrome functions and performance
improvement seen on RoboHornet benchmark on Linux Desktop
BUG=401517
Committed: https://crrev.com/a5022d5eab6f77889aceed6ab0ccaf44a657ffc4
Cr-Commit-Position: refs/heads/master@{#301162}
Patch Set 1 : Equivalent to patch 12 on original CL #Patch Set 2 : Add MSan suppression, prevent crc_fold_copy reading outside allocated memory, inline insert_string_… #
Total comments: 2
Messages
Total messages: 13 (3 generated)
|