mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
[linux-kernel] Don't add -O3 to CFLAGS
It is no longer necessary to get good performance, there is only a small speed difference between -O2 and -O3, so just stick to the default of -O2. This also fixes the stack space usage on parisc. The compiler was buggy for -O3 and used ~3KB of stack space for several functions. With -O2 the problem is completely resolved, and stack space is back to a few hundred bytes. Additionally, we get a large code size win on gcc: | Compiler | Before (Bytes) | After (Bytes) | Delta (Bytes) | |----------|----------------|---------------|---------------| | gcc-11 | 952754 | 738954 | -213800 | | clang-12 | 976290 | 938826 | -37464 |
This commit is contained in:
parent
b9302410bf
commit
1eba76a2d1
1 changed files with 0 additions and 2 deletions
|
|
@ -11,8 +11,6 @@
|
|||
obj-$(CONFIG_ZSTD_COMPRESS) += zstd_compress.o
|
||||
obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd_decompress.o
|
||||
|
||||
ccflags-y += -O3
|
||||
|
||||
zstd_compress-y := \
|
||||
zstd_compress_module.o \
|
||||
common/debug.o \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue