Enabled AVX2 and FMA compiler Flags for libart module.
Performance Impact:
10-12% Launch Time performance improvement for top ranked apps
13-15% Cold Launch Time performance improvement for Top Ranked Education Apps
11-14% Warm Launch Time performance improvement for Top Ranked Education Apps
Test: run-test gtest
Change-Id: I4e4e3dd3aa2ee03395f782116858647f305aae00
Signed-off-by: jaishank <jaishankar.rajendran@intel.com>
diff --git a/build/Android.bp b/build/Android.bp
index 9fec80c..605d468 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -108,6 +108,25 @@
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
],
+ arch: {
+ x86: {
+ avx2: {
+ cflags: [
+ "-mavx2",
+ "-mfma",
+ ],
+ },
+ },
+ x86_64: {
+ avx2: {
+ cflags: [
+ "-mavx2",
+ "-mfma",
+ ],
+ },
+ },
+ },
+
target: {
android: {
cflags: [