mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
[Arm][AArch64] Stop explicitly optimising for speed in BUILD.gn
Most of the important kernels are inline assembly anyway so optimising for speed gets us nothing here. Based on a comment here: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5588664/2/BUILD.gn#295 Change-Id: I8fa8ab37873dfee4eb26c5a3c1045dc10374e4f4 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5633654 Reviewed-by: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
parent
367dd50755
commit
5adc2ce2cb
30
BUILD.gn
30
BUILD.gn
@ -232,16 +232,6 @@ if (libyuv_use_neon) {
|
||||
|
||||
public_configs = [ ":libyuv_config" ]
|
||||
|
||||
# Always enable optimization for Release and NaCl builds (to workaround
|
||||
# crbug.com/538243).
|
||||
if (!is_debug) {
|
||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||
|
||||
# Enable optimize for speed (-O2) over size (-Os).
|
||||
# TODO(fbarchard): Consider optimize_speed which is O3.
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
if (current_cpu == "arm64") {
|
||||
cflags = [ "-march=armv8-a+dotprod+i8mm" ]
|
||||
} else {
|
||||
@ -261,16 +251,6 @@ if (libyuv_use_sve) {
|
||||
|
||||
public_configs = [ ":libyuv_config" ]
|
||||
|
||||
# Always enable optimization for Release and NaCl builds (to workaround
|
||||
# crbug.com/538243).
|
||||
if (!is_debug) {
|
||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||
|
||||
# Enable optimize for speed (-O2) over size (-Os).
|
||||
# TODO(fbarchard): Consider optimize_speed which is O3.
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
# SVE2 is an Armv9-A feature.
|
||||
cflags = [ "-march=armv9-a+sve2" ]
|
||||
}
|
||||
@ -286,16 +266,6 @@ if (libyuv_use_sme) {
|
||||
|
||||
public_configs = [ ":libyuv_config" ]
|
||||
|
||||
# Always enable optimization for Release and NaCl builds (to workaround
|
||||
# crbug.com/538243).
|
||||
if (!is_debug) {
|
||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||
|
||||
# Enable optimize for speed (-O2) over size (-Os).
|
||||
# TODO(fbarchard): Consider optimize_speed which is O3.
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
# SME is an Armv9-A feature.
|
||||
cflags = [ "-march=armv9-a+sme" ]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user