Remove Function::is_call

The documentation says that this is only used for heuristics, but it
is never actually called. This should be removed for now and perhaps
added back later if we find an actual use for it.
This commit is contained in:
Amanieu d'Antras
2021-09-03 13:30:23 +02:00
parent 7724dc6f5a
commit a243c4e575
4 changed files with 3 additions and 16 deletions

View File

@@ -847,10 +847,6 @@ pub trait Function {
/// Get the block parameters for a given block.
fn block_params(&self, block: Block) -> &[VReg];
/// Determine whether an instruction is a call instruction. This is used
/// only for splitting heuristics.
fn is_call(&self, insn: Inst) -> bool;
/// Determine whether an instruction is a return instruction.
fn is_ret(&self, insn: Inst) -> bool;