IgnoreVRegDefs // Ignore virtual register definitions
};
- /// Return true if this instruction is identical to (same
- /// opcode and same operands as) the specified instruction.
+ /// Return true if this instruction is identical to \p Other.
+ /// Identical meaning same opcode and all operands reported as
+ /// isIdenticalOp() (equal except for liveness flags).
bool isIdenticalTo(const MachineInstr &Other,
MICheckType Check = CheckDefs) const;
// Other methods.
//===--------------------------------------------------------------------===//
- /// isIdenticalTo - Return true if this operand is identical to the specified
- /// operand. Note: This method ignores isKill and isDead properties.
+ /// Returns true if this operand is identical to the specified operand except
+ /// for liveness related flags (isKill, isUndef and isDead).
bool isIdenticalTo(const MachineOperand &Other) const;
/// \brief MachineOperand hash_value overload.