mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Change PGO type for clang
Change type of PGO in clang to IR which is recommended by LLVM/clang and could result in a speedup. https://github.com/llvm/llvm-project/issues/45668 closes https://github.com/official-stockfish/Stockfish/pull/5355 No functional change
This commit is contained in:
parent
5688b188cc
commit
e6c83beed1
1 changed files with 3 additions and 3 deletions
|
@ -1051,14 +1051,14 @@ FORCE:
|
||||||
|
|
||||||
clang-profile-make:
|
clang-profile-make:
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
||||||
EXTRACXXFLAGS='-fprofile-instr-generate ' \
|
EXTRACXXFLAGS='-fprofile-generate ' \
|
||||||
EXTRALDFLAGS=' -fprofile-instr-generate' \
|
EXTRALDFLAGS=' -fprofile-generate' \
|
||||||
all
|
all
|
||||||
|
|
||||||
clang-profile-use:
|
clang-profile-use:
|
||||||
$(XCRUN) llvm-profdata merge -output=stockfish.profdata *.profraw
|
$(XCRUN) llvm-profdata merge -output=stockfish.profdata *.profraw
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
||||||
EXTRACXXFLAGS='-fprofile-instr-use=stockfish.profdata' \
|
EXTRACXXFLAGS='-fprofile-use=stockfish.profdata' \
|
||||||
EXTRALDFLAGS='-fprofile-use ' \
|
EXTRALDFLAGS='-fprofile-use ' \
|
||||||
all
|
all
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue