mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
use RobRich999 SIMD opts
This commit is contained in:
parent
5459cb2621
commit
b22c7f325d
4 changed files with 38 additions and 2 deletions
|
@ -2286,6 +2286,12 @@ if (is_win) {
|
|||
"-mllvm", "-enable-dfa-jump-thread",
|
||||
"/O2",
|
||||
"/clang:-O3",
|
||||
"/clang:-msse3",
|
||||
"/clang:-mssse3",
|
||||
"/clang:-msse4",
|
||||
"/clang:-msse4.1",
|
||||
"/clang:-msse4.2",
|
||||
"/clang:-mavx",
|
||||
"/clang:-mavx2",
|
||||
"/clang:-maes",
|
||||
"/clang:-mpclmul",
|
||||
|
|
|
@ -129,17 +129,26 @@ config("compiler") {
|
|||
# "/fp:fast", enables FMA.
|
||||
if (current_cpu == "x86" || current_cpu == "x64") {
|
||||
cflags += [
|
||||
"-msse3",
|
||||
"-mssse3",
|
||||
"-msse4",
|
||||
"-msse4.1",
|
||||
"-msse4.2",
|
||||
"-mavx",
|
||||
"-mavx2",
|
||||
"-maes",
|
||||
"-mpclmul",
|
||||
"/clang:-O3",
|
||||
"/clang:-msse3",
|
||||
"/clang:-mssse3",
|
||||
"/clang:-msse4",
|
||||
"/clang:-msse4.1",
|
||||
"/clang:-msse4.2",
|
||||
"/clang:-mavx",
|
||||
"/clang:-mavx2",
|
||||
"/clang:-maes",
|
||||
"/clang:-mpclmul",
|
||||
"-Xclang", "-O3",
|
||||
"/clang:-march=haswell",
|
||||
"/clang:-ffp-contract=fast",
|
||||
"/arch:AVX2",
|
||||
"-Wno-unused-command-line-argument",
|
||||
|
|
|
@ -1141,11 +1141,16 @@ config("compiler_cpu_abi") {
|
|||
cflags += [
|
||||
"-m64",
|
||||
"-O3",
|
||||
"-msse3",
|
||||
"-mssse3",
|
||||
"-msse4",
|
||||
"-msse4.1",
|
||||
"-msse4.2",
|
||||
"-mavx",
|
||||
"-maes",
|
||||
"-mpclmul",
|
||||
]
|
||||
ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ]
|
||||
ldflags += [ "-m64", "-Wl,-O3", "-msse3", "-mssse3", "-msse4", "-msse4.1", "-msse4.2", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ]
|
||||
} else if (current_cpu == "x86") {
|
||||
cflags += [ "-m32" ]
|
||||
ldflags += [ "-m32", "-Wl,-O3", "-msse3", ]
|
||||
|
@ -2286,6 +2291,11 @@ if (is_win) {
|
|||
"-mllvm", "-enable-dfa-jump-thread",
|
||||
"/O2",
|
||||
"/clang:-O3",
|
||||
"/clang:-msse3",
|
||||
"/clang:-mssse3",
|
||||
"/clang:-msse4",
|
||||
"/clang:-msse4.1",
|
||||
"/clang:-msse4.2",
|
||||
"/clang:-mavx",
|
||||
"/clang:-maes",
|
||||
"/clang:-mpclmul",
|
||||
|
|
|
@ -129,10 +129,20 @@ config("compiler") {
|
|||
# "/fp:fast", enables FMA.
|
||||
if (current_cpu == "x86" || current_cpu == "x64") {
|
||||
cflags += [
|
||||
"-msse3",
|
||||
"-mssse3",
|
||||
"-msse4",
|
||||
"-msse4.1",
|
||||
"-msse4.2",
|
||||
"-mavx",
|
||||
"-maes",
|
||||
"-mpclmul",
|
||||
"/clang:-O3",
|
||||
"/clang:-msse3",
|
||||
"/clang:-mssse3",
|
||||
"/clang:-msse4",
|
||||
"/clang:-msse4.1",
|
||||
"/clang:-msse4.2",
|
||||
"/clang:-mavx",
|
||||
"/clang:-maes",
|
||||
"/clang:-mpclmul",
|
||||
|
@ -206,6 +216,7 @@ config("compiler") {
|
|||
"/INCREMENTAL:NO",
|
||||
"/FIXED:NO",
|
||||
"/OPT:lldlto=3",
|
||||
"-mllvm:-march=sandybridge",
|
||||
]
|
||||
|
||||
if (use_lld) {
|
||||
|
|
Loading…
Reference in a new issue