summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authoryuanhecai <yuanhecai@loongson.cn>2022-05-25 09:42:35 +0800
committeryuanhecai <yuanhecai@loongson.cn>2022-05-25 11:20:13 +0800
commit44874ab879455941c977910daba1b80788f243da (patch)
treec9ee313fe0e1bdb2a1518ac73b49b972f62728c0 /build
parentb163db1a6a3e9c5e544a2c8e43b7a0d299d2b8c6 (diff)
downloadlibvpx-44874ab879455941c977910daba1b80788f243da.tar
libvpx-44874ab879455941c977910daba1b80788f243da.tar.gz
libvpx-44874ab879455941c977910daba1b80788f243da.tar.bz2
libvpx-44874ab879455941c977910daba1b80788f243da.zip
loongarch: Remove redundant code
Simplify architecture support code and remove redundant code to improve efficiency. Bug: webm:1755 Change-Id: I03bc251aca115b0379fe19907abd165e0876355b
Diffstat (limited to 'build')
-rwxr-xr-xbuild/make/rtcd.pl15
1 files changed, 1 insertions, 14 deletions
diff --git a/build/make/rtcd.pl b/build/make/rtcd.pl
index 8ed776add..9c9726842 100755
--- a/build/make/rtcd.pl
+++ b/build/make/rtcd.pl
@@ -494,20 +494,7 @@ if ($opts{arch} eq 'x86') {
@ALL_ARCHS = filter(qw/vsx/);
ppc;
} elsif ($opts{arch} =~ /loongarch/ ) {
- @ALL_ARCHS = filter("$opts{arch}");
- open CONFIG_FILE, $opts{config} or
- die "Error opening config file '$opts{config}': $!\n";
- while (<CONFIG_FILE>) {
- if (/HAVE_LSX=yes/) {
- @ALL_ARCHS = filter("$opts{arch}", qw/lsx/);
- last;
- }
- if (/HAVE_LASX=yes/) {
- @ALL_ARCHS = filter("$opts{arch}", qw/lasx/);
- last;
- }
- }
- close CONFIG_FILE;
+ @ALL_ARCHS = filter(qw/lsx lasx/);
loongarch;
} else {
unoptimized;