use RobRich999 SIMD opts

This commit is contained in:
Alexander Frick 2024-01-18 19:25:07 -06:00
parent 5459cb2621
commit b22c7f325d
4 changed files with 38 additions and 2 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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) {