aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-08 04:53:23 +0000
committerDan Gohman <gohman@apple.com>2008-12-08 04:53:23 +0000
commiteaccea3533f87344a468aee3a47bfcf164530c5e (patch)
tree0e6ab17a2a41aed9e51748a007902ff35051f62b
parent25d7a5ec25689fcb7e9593717414cd8365569988 (diff)
downloadexternal_llvm-eaccea3533f87344a468aee3a47bfcf164530c5e.zip
external_llvm-eaccea3533f87344a468aee3a47bfcf164530c5e.tar.gz
external_llvm-eaccea3533f87344a468aee3a47bfcf164530c5e.tar.bz2
Clarify some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60683 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 1df6c7d..52b57d6 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -918,7 +918,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
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 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
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;
}