Skip to content

Commit

Permalink
Makefile: Apply tuning flags from lazerl0rd
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuki Hashimoto <[email protected]>
  • Loading branch information
Kaz205 authored and buzzcut-s committed Feb 21, 2022
1 parent 1ea9ac8 commit 6142281
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,11 @@ else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
endif

ifdef CONFIG_CC_IS_CLANG
KBUILD_CFLAGS += -mllvm -inline-threshold=600
KBUILD_CFLAGS += -mllvm -inlinehint-threshold=750
endif

# Tell gcc to never replace conditional load with a non-conditional one
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races)
Expand Down

0 comments on commit 6142281

Please sign in to comment.