Bug 1648697 - Disable --enable-avx. r=bbouvier

I disable this with an error message and a comment, but do not remove it,
because it is currently buggy and unsupported but may well make a comeback
when we have time to clean it up and we see whether wasm SIMD on the web
starts demanding it.

It is of course possible that we will never do this in Ion but will wait
for Cranelift, but we don't have to make that decision today.

Differential Revision: https://phabricator.services.mozilla.com/D81293
This commit is contained in:
Lars T Hansen 2020-06-26 08:54:48 +00:00
Родитель caf588721d
Коммит 4ada6f9383
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -72,8 +72,6 @@
--wasm-disable-huge-memory
# CPU instruction set-related
--enable-avx
--no-avx
--no-sse3
--no-ssse3
--no-sse41

Просмотреть файл

@ -11221,6 +11221,10 @@ int main(int argc, char** argv, char** envp) {
if (!sCompilerProcessFlags.append("--enable-avx")) {
return EXIT_FAILURE;
}
// Disable AVX completely for now. We're not supporting AVX and things
// break easily if asking for AVX.
fprintf(stderr, "Error: AVX encodings are currently disabled\n");
return EXIT_FAILURE;
}
#endif