summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-09-20 01:14:39 +0000
committerMatthias Braun <matze@braunis.de>2016-09-20 01:14:39 +0000
commitd0a238fc6b5472e6e8bd69a083b3e6dd4a43bcbc (patch)
tree80d48fbd9619d25312fa5b6138e98ee3fe4db08c /llvm
parentc3652ed69fb35f0c16d84909475799830eae32a3 (diff)
downloadbcm5719-llvm-d0a238fc6b5472e6e8bd69a083b3e6dd4a43bcbc.tar.gz
bcm5719-llvm-d0a238fc6b5472e6e8bd69a083b3e6dd4a43bcbc.zip
Machine{Instr|Operand}: Clarify some isIdenticalTo() subtleties.
llvm-svn: 281956
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h5
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 3da62a33781..c645c20cc17 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 05e6f466184..cf4607957f9 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.
OpenPOWER on IntegriCloud