Replace MachInst::gen_zero_len_nop with gen_nop(0)

This commit is contained in:
Kasey Carrothers
2021-01-29 01:09:32 -08:00
parent ac60ad6c9a
commit 99be82c866
5 changed files with 7 additions and 16 deletions

View File

@@ -148,9 +148,6 @@ pub trait MachInst: Clone + Debug {
alloc_tmp: F,
) -> SmallVec<[Self; 4]>;
/// Generate a zero-length no-op.
fn gen_zero_len_nop() -> Self;
/// Possibly operate on a value directly in a spill-slot rather than a
/// register. Useful if the machine has register-memory instruction forms
/// (e.g., add directly from or directly to memory), like x86.