[llvm] r282424 - MachineInstr: Fix comment typo, further refine comment; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 11:38:05 PDT 2016
Author: matze
Date: Mon Sep 26 13:38:05 2016
New Revision: 282424
URL: http://llvm.org/viewvc/llvm-project?rev=282424&view=rev
Log:
MachineInstr: Fix comment typo, further refine comment; NFC
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstr.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=282424&r1=282423&r2=282424&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Mon Sep 26 13:38:05 2016
@@ -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;
More information about the llvm-commits
mailing list