Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cb1f6a5 authored by jaishank's avatar jaishank Committed by android-build-merger
Browse files

Merge "Disabled avx avx2 avx512 compiler flags by default. Library components...

Merge "Disabled avx avx2 avx512 compiler flags by default. Library components can enable the flags based on performance impact" am: dd5cf757
am: 1b4699a2

Change-Id: I553cab57535513558e3d976e0d3e5c6a4532a02b
parents d3c8c1ed 1b4699a2
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -67,10 +67,16 @@ var (
		"sse4":   []string{"-msse4"},
		"sse4_1": []string{"-msse4.1"},
		"sse4_2": []string{"-msse4.2"},

		// Not all cases there is performance gain by enabling -mavx -mavx2
		// flags so these flags are not enabled by default.
		// if there is performance gain in individual library components,
		// the compiler flags can be set in corresponding bp files.
		// "avx":    []string{"-mavx"},
		// "avx2":   []string{"-mavx2"},
		// "avx512": []string{"-mavx512"}

		"popcnt": []string{"-mpopcnt"},
		"avx":    []string{"-mavx"},
		"avx2":   []string{"-mavx2"},
		"avx512": []string{"-mavx512"},
		"aes_ni": []string{"-maes"},
	}
)
+9 −2
Original line number Diff line number Diff line
@@ -86,8 +86,15 @@ var (
		"sse4":   []string{"-msse4"},
		"sse4_1": []string{"-msse4.1"},
		"sse4_2": []string{"-msse4.2"},
		"avx":    []string{"-mavx"},
		"avx2":   []string{"-mavx2"},

		// Not all cases there is performance gain by enabling -mavx -mavx2
		// flags so these flags are not enabled by default.
		// if there is performance gain in individual library components,
		// the compiler flags can be set in corresponding bp files.
		// "avx":    []string{"-mavx"},
		// "avx2":   []string{"-mavx2"},
		// "avx512": []string{"-mavx512"}

		"aes_ni": []string{"-maes"},
	}
)