From c18be4a547861d9f06ef38c772b248c966631d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Wed, 30 Sep 2020 10:30:15 +0000 Subject: [PATCH] Revert "Deactivating AVX2 support by default" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3f8966f4abad97b9e0da16994d82e4f72d353486. Reason for revert: The issues identified during testing were found to be unrelated to the AVX2 code. Original change's description: > Deactivating AVX2 support by default > > This CL deactivates the AVX2 support by default due to issues identified > during testing. > > > Bug: webrtc:11663 > Change-Id: Ib42791a8da9a93c986f69bfc85def2158525af79 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185818 > Reviewed-by: Mirko Bonadei > Reviewed-by: Niels Moller > Commit-Queue: Per Åhgren > Cr-Commit-Position: refs/heads/master@{#32231} TBR=mbonadei@webrtc.org,peah@webrtc.org,nisse@webrtc.org Change-Id: I132c9e436cfb0145c8744902b2ea3bca8c8f0f79 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:11663 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186044 Reviewed-by: Per Åhgren Reviewed-by: Niels Moller Commit-Queue: Per Åhgren Cr-Commit-Position: refs/heads/master@{#32252} --- system_wrappers/source/cpu_features.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_wrappers/source/cpu_features.cc b/system_wrappers/source/cpu_features.cc index 09897c436c..0f81212894 100644 --- a/system_wrappers/source/cpu_features.cc +++ b/system_wrappers/source/cpu_features.cc @@ -79,7 +79,7 @@ int GetCPUInfo(CPUFeature feature) { } #if defined(WEBRTC_ENABLE_AVX2) if (feature == kAVX2 && - webrtc::field_trial::IsEnabled("WebRTC-ActivateAvx2Support")) { + !webrtc::field_trial::IsEnabled("WebRTC-Avx2SupportKillSwitch")) { int cpu_info7[4]; __cpuid(cpu_info7, 0); int num_ids = cpu_info7[0];