[llvm-commits] [llvm] r60683 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Dan Gohman
gohman at apple.com
Sun Dec 7 20:53:23 PST 2008
Author: djg
Date: Sun Dec 7 22:53:23 2008
New Revision: 60683
URL: http://llvm.org/viewvc/llvm-project?rev=60683&view=rev
Log:
Clarify some comments.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=60683&r1=60682&r2=60683&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Sun Dec 7 22:53:23 2008
@@ -918,7 +918,7 @@
MachineRegisterInfo::def_iterator I = mri_->def_begin(Reg),
E = mri_->def_end();
- // For the def, it should be the only def.
+ // For the def, it should be the only def of that register.
if (MO.isDef() && (next(I) != E || IsLiveIn))
return false;
@@ -931,7 +931,7 @@
else if (Reg != ImpUse)
return false;
}
- // For uses, there should be only one associate def.
+ // For the use, there should be only one associated def.
if (I != E && (next(I) != E || IsLiveIn))
return false;
}
More information about the llvm-commits
mailing list