llvm::MachineInstr::isIdenticalTo

Return true if this instruction is identical to Other.

Synopsis

Declared in <llvm/CodeGen/MachineInstr.h>

bool
isIdenticalTo(
    MachineInstr const& Other,
    MICheckType Check = CheckDefs) const;

Description

Same opcode and identical operands (per MachineOperand::isIdenticalTo). Liveness flags (dead, undef, kill) do not affect identity unless requested via Check.

Return Value

True if the instructions are identical under Check.

Parameters

NameDescription
OtherOther instruction to compare against.
CheckHow strictly operands and defs are compared.