Avoid legacy instruction penalties on x86

This commit is contained in:
Justine Tunney 2024-07-31 01:02:24 -07:00
parent 1fba310e22
commit 8d8aecb6d9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
16 changed files with 199 additions and 158 deletions

View file

@ -97,6 +97,14 @@ o/$(MODE)/libc/intrin/x86.o: private \
-fpatchable-function-entry=0 \
-Os
# avoid the legacy sse decoding penalty on avx systems
o//libc/intrin/dll.o \
o//libc/intrin/fds.o \
o//libc/intrin/mmap.o \
o//libc/intrin/demangle.o: private \
CFLAGS += \
-mgeneral-regs-only
# these assembly files are safe to build on aarch64
o/$(MODE)/libc/intrin/aarch64/%.o: libc/intrin/aarch64/%.S
@$(COMPILE) -AOBJECTIFY.S $(OBJECTIFY.S) $(OUTPUT_OPTION) -c $<