Code to easily compare SIMD and scalar decode in a live instance

Also remove -mtune=intel as it fails with clang
This commit is contained in:
Kovid Goyal
2024-02-02 11:35:51 +05:30
parent 561712090d
commit f1fe0bf40a
4 changed files with 26 additions and 5 deletions

View File

@@ -712,15 +712,11 @@ def get_source_specific_cflags(env: Env, src: str) -> List[str]:
if src in ('kitty/simd-string-128.c', 'kitty/simd-string-256.c'):
if env.binary_arch.isa in (ISA.AMD64, ISA.X86):
ans.append('-msse4.2' if '128' in src else '-mavx2')
if not env.native_optimizations:
ans.append('-mtune=intel')
elif env.binary_arch.isa != ISA.ARM64:
ans.append('-DKITTY_NO_SIMD')
elif src.startswith('3rdparty/base64/lib/arch/'):
if env.binary_arch.isa in (ISA.AMD64, ISA.X86):
q = src.split(os.path.sep)
if not env.native_optimizations:
ans.append('-mtune=intel')
if 'sse3' in q:
ans.append('-msse3')
elif 'sse41' in q: