[llvm-commits] [llvm] r151178 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Andrew Trick
atrick at apple.com
Wed Feb 22 10:34:50 PST 2012
Author: atrick
Date: Wed Feb 22 12:34:49 2012
New Revision: 151178
URL: http://llvm.org/viewvc/llvm-project?rev=151178&view=rev
Log:
Comment from code review
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=151178&r1=151177&r2=151178&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Wed Feb 22 12:34:49 2012
@@ -362,6 +362,7 @@
unsigned Reg = MI->getOperand(OperIdx).getReg();
// SSA defs do not have output/anti dependencies.
+ // The current operand is a def, so we have at least one.
if (llvm::next(MRI.def_begin(Reg)) == MRI.def_end())
return;
More information about the llvm-commits
mailing list