Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 4d5121c

Browse files
committed
MachineInstr: Fix comment typo, further refine comment; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282424 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 92388ae commit 4d5121c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/llvm/CodeGen/MachineInstr.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,10 @@ class MachineInstr
722722
};
723723

724724
/// Return true if this instruction is identical to \p Other.
725-
/// Identical meaning same opcode and all operands reported as
726-
/// isIdenticalOp() (equal except for liveness flags).
725+
/// Two instructions are identical if they have the same opcode and all their
726+
/// operands are identical (with respect to MachineOperand::isIdenticalTo()).
727+
/// Note that this means liveness related flags (dead, undef, kill) do not
728+
/// affect the notion of identical.
727729
bool isIdenticalTo(const MachineInstr &Other,
728730
MICheckType Check = CheckDefs) const;
729731

0 commit comments

Comments
 (0)