ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.04k stars 407 forks source link

Remove invalid command line arg when building with clang #152

Closed ngzhian closed 3 years ago

ngzhian commented 3 years ago

Based on https://clang.llvm.org/docs/ClangCommandLineReference.html#x86 this flag does not exist for Clang.

I read up a bit more on https://stackoverflow.com/a/52628753/4052492 and it looks like clang defaults to not splitting unaligned load when given -mavx: https://godbolt.org/z/n6Tx949hc

This is also similar to the check for clang when setting the flags for AVX2 (right below).