Skip to content

Commit 3c4e721

Browse files
committed
use -march=haswell on -O2
1 parent 5a787f2 commit 3c4e721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compile/Options.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ ccGcc name opt platform path
11531153
archBits= 8 * sizePtr platform
11541154
arch = -- unfortunately, these flags are not as widely supported as one may hope so we only enable at -O2 or higher
11551155
if (opt < 2) then []
1156-
else if (cpuArch=="x64" && archBits==64) then ["-march=x86-64-v3","-mtune=native"] -- popcnt, lzcnt, tzcnt, pdep, pext (2013, Haswell)
1156+
else if (cpuArch=="x64" && archBits==64) then ["-march=haswell","-mtune=native"] -- Haswell (2013) = x86-64-v3: popcnt, lzcnt, tzcnt, pdep, pext
11571157
else if (cpuArch=="arm64" && archBits==64) then ["-march=armv8.1-a","-mtune=native"] -- popcnt, simd, lse
11581158
else []
11591159

0 commit comments

Comments
 (0)