diff --git a/cranelift/codegen/src/isa/aarch64/inst/mod.rs b/cranelift/codegen/src/isa/aarch64/inst/mod.rs index 6fc2a95983..54e2a4f77d 100644 --- a/cranelift/codegen/src/isa/aarch64/inst/mod.rs +++ b/cranelift/codegen/src/isa/aarch64/inst/mod.rs @@ -1114,10 +1114,7 @@ impl MachInst for Inst { fn is_safepoint(&self) -> bool { match self { - &Inst::Call { .. } - | &Inst::CallInd { .. } - | &Inst::TrapIf { .. } - | &Inst::Udf { .. } => true, + Inst::Call { .. } | Inst::CallInd { .. } => true, _ => false, } } diff --git a/cranelift/codegen/src/isa/riscv64/inst/mod.rs b/cranelift/codegen/src/isa/riscv64/inst/mod.rs index eee4af1cc9..a846c60249 100644 --- a/cranelift/codegen/src/isa/riscv64/inst/mod.rs +++ b/cranelift/codegen/src/isa/riscv64/inst/mod.rs @@ -731,10 +731,7 @@ impl MachInst for Inst { fn is_safepoint(&self) -> bool { match self { - &Inst::Call { .. } - | &Inst::CallInd { .. } - | &Inst::TrapIf { .. } - | &Inst::Udf { .. } => true, + Inst::Call { .. } | Inst::CallInd { .. } => true, _ => false, } } diff --git a/cranelift/codegen/src/isa/s390x/inst/mod.rs b/cranelift/codegen/src/isa/s390x/inst/mod.rs index b9550a9839..6b1d9f531a 100644 --- a/cranelift/codegen/src/isa/s390x/inst/mod.rs +++ b/cranelift/codegen/src/isa/s390x/inst/mod.rs @@ -1073,13 +1073,7 @@ impl MachInst for Inst { fn is_safepoint(&self) -> bool { match self { - &Inst::Call { .. } - | &Inst::CallInd { .. } - | &Inst::Trap { .. } - | Inst::TrapIf { .. } - | &Inst::CmpTrapRR { .. } - | &Inst::CmpTrapRSImm16 { .. } - | &Inst::CmpTrapRUImm16 { .. } => true, + Inst::Call { .. } | Inst::CallInd { .. } => true, _ => false, } } diff --git a/cranelift/codegen/src/isa/x64/inst/mod.rs b/cranelift/codegen/src/isa/x64/inst/mod.rs index 34e6647f62..fd8c375e6e 100644 --- a/cranelift/codegen/src/isa/x64/inst/mod.rs +++ b/cranelift/codegen/src/isa/x64/inst/mod.rs @@ -2687,10 +2687,7 @@ impl MachInst for Inst { fn is_safepoint(&self) -> bool { match self { - Inst::CallKnown { .. } - | Inst::CallUnknown { .. } - | Inst::TrapIf { .. } - | Inst::Ud2 { .. } => true, + Inst::CallKnown { .. } | Inst::CallUnknown { .. } => true, _ => false, } }