mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Avoid legacy instruction penalties on x86
This commit is contained in:
parent
1fba310e22
commit
8d8aecb6d9
16 changed files with 199 additions and 158 deletions
7
third_party/dlmalloc/BUILD.mk
vendored
7
third_party/dlmalloc/BUILD.mk
vendored
|
@ -58,6 +58,13 @@ $(THIRD_PARTY_DLMALLOC_A_OBJS): private \
|
|||
-Wframe-larger-than=4096 \
|
||||
-Walloca-larger-than=4096
|
||||
|
||||
# avoid the legacy sse decoding penalty on avx systems
|
||||
ifeq ($(MODE),)
|
||||
$(THIRD_PARTY_DLMALLOC_A_OBJS): private \
|
||||
COPTS += \
|
||||
-mgeneral-regs-only
|
||||
endif
|
||||
|
||||
THIRD_PARTY_DLMALLOC_LIBS = $(foreach x,$(THIRD_PARTY_DLMALLOC_ARTIFACTS),$($(x)))
|
||||
THIRD_PARTY_DLMALLOC_SRCS = $(foreach x,$(THIRD_PARTY_DLMALLOC_ARTIFACTS),$($(x)_SRCS))
|
||||
THIRD_PARTY_DLMALLOC_HDRS = $(foreach x,$(THIRD_PARTY_DLMALLOC_ARTIFACTS),$($(x)_HDRS))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue