about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWANG Rui <wangrui@loongson.cn>2023-05-08 11:07:56 +0800
committerWANG Rui <wangrui@loongson.cn>2023-05-08 11:08:09 +0800
commitc5382adc65119d55ac5045049d6cff095f6d111f (patch)
tree54bbd9f99b2ee9cab57b471800cc154fe9185902
parent8ad78cb02c62af59e750082c538968430d9c0cdd (diff)
downloadrust-c5382adc65119d55ac5045049d6cff095f6d111f.tar.gz
rust-c5382adc65119d55ac5045049d6cff095f6d111f.zip
Simplify match statement since variable arch that is predictable
-rw-r--r--compiler/rustc_target/src/asm/loongarch.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/rustc_target/src/asm/loongarch.rs b/compiler/rustc_target/src/asm/loongarch.rs
index 7ace1647ded..9d1a4f3eeea 100644
--- a/compiler/rustc_target/src/asm/loongarch.rs
+++ b/compiler/rustc_target/src/asm/loongarch.rs
@@ -33,12 +33,11 @@ impl LoongArchInlineAsmRegClass {
 
     pub fn supported_types(
         self,
-        arch: InlineAsmArch,
+        _arch: InlineAsmArch,
     ) -> &'static [(InlineAsmType, Option<Symbol>)] {
-        match (self, arch) {
-            (Self::reg, InlineAsmArch::LoongArch64) => types! { _: I8, I16, I32, I64, F32, F64; },
-            (Self::reg, _) => types! { _: I8, I16, I32, F32; },
-            (Self::freg, _) => types! { _: F32, F64; },
+        match self {
+            Self::reg => types! { _: I8, I16, I32, I64, F32, F64; },
+            Self::freg => types! { _: F32, F64; },
         }
     }
 }