From 4d5121c6bbc6a881adfb86d259d247786d96a9de Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 26 Sep 2016 18:38:05 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineInstr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index c645c20cc17..b99dbf0fc97 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -722,8 +722,10 @@ public: }; /// 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). + /// Two instructions are identical if they have the same opcode and all their + /// operands are identical (with respect to MachineOperand::isIdenticalTo()). + /// Note that this means liveness related flags (dead, undef, kill) do not + /// affect the notion of identical. bool isIdenticalTo(const MachineInstr &Other, MICheckType Check = CheckDefs) const; -- 2.11.0