From: Matthias Braun Date: Tue, 20 Sep 2016 01:14:39 +0000 (+0000) Subject: Machine{Instr|Operand}: Clarify some isIdenticalTo() subtleties. X-Git-Tag: llvmorg-4.0.0-rc1~9347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0a238fc6b5472e6e8bd69a083b3e6dd4a43bcbc;p=platform%2Fupstream%2Fllvm.git Machine{Instr|Operand}: Clarify some isIdenticalTo() subtleties. llvm-svn: 281956 --- diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index 3da62a3..c645c20 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -721,8 +721,9 @@ public: 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; diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h index 05e6f46..cf46079 100644 --- a/llvm/include/llvm/CodeGen/MachineOperand.h +++ b/llvm/include/llvm/CodeGen/MachineOperand.h @@ -566,8 +566,8 @@ public: // 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.