Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 7cbddff

Browse files
committed
XANMOD: kbuild: Move GCC SMS optimization flags to Makefile
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
1 parent ed7d8fc commit 7cbddff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ rustflags64-$(CONFIG_GENERIC_CPU) += -Ztune-cpu=generic
968968
KBUILD_RUSTFLAGS += $(rustflags64-y)
969969

970970
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
971-
KBUILD_CFLAGS += -O2
971+
KBUILD_CFLAGS += -O2 $(call cc-option,-fmodulo-sched -fmodulo-sched-allow-regmoves)
972972
KBUILD_RUSTFLAGS += -Copt-level=2
973973
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
974974
KBUILD_CFLAGS += -Os

arch/x86/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export BITS
6565

6666
# More compiler optimizations
6767
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
68-
KBUILD_CFLAGS += -O3 $(call cc-option,-fmodulo-sched -fmodulo-sched-allow-regmoves -fivopts)
68+
KBUILD_CFLAGS += -O3 $(call cc-option,-fivopts)
6969
KBUILD_RUSTFLAGS += -Copt-level=3
7070
endif
7171

0 commit comments

Comments
 (0)