Testcase for PR2264.
[oota-llvm.git] / lib / CodeGen / MachineInstr.cpp
index 1275909dd91572395a4e2acea44c59c1bdb46f81..135718acc703eff7fc94e061f7c20c41d2386a35 100644 (file)
@@ -553,8 +553,9 @@ int MachineInstr::findRegisterUseOperandIdx(unsigned Reg, bool isKill,
 }
   
 /// findRegisterDefOperandIdx() - Returns the operand index that is a def of
-/// the specific register or -1 if it is not found. It further tightening
-  /// the search criteria to a def that is dead the register if isDead is true.
+/// the specified register or -1 if it is not found. If isDead is true, defs
+/// that are not dead are skipped. If TargetRegisterInfo is non-null, then it
+/// also checks if there is a def of a super-register.
 int MachineInstr::findRegisterDefOperandIdx(unsigned Reg, bool isDead,
                                           const TargetRegisterInfo *TRI) const {
   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {