MachineInstr: Fix comment typo, further refine comment; NFC
authorMatthias Braun <matze@braunis.de>
Mon, 26 Sep 2016 18:38:05 +0000 (18:38 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 26 Sep 2016 18:38:05 +0000 (18:38 +0000)
llvm-svn: 282424

llvm/include/llvm/CodeGen/MachineInstr.h

index c645c20cc17cbefd385f617a6e147feb7ed9f8ba..b99dbf0fc974e28783156cf7b6bbfc47533266a1 100644 (file)
@@ -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;