summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
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
commit9de2ac8e8b08b9f914acf331a64142818017bd1f (patch)
tree646b94aec7121be423f0ee6e92ea8c0fa9b817d3 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentdf427856bef3f6070f49e96c7767589600f1f5d2 (diff)
downloadbcm5719-llvm-9de2ac8e8b08b9f914acf331a64142818017bd1f.tar.gz
bcm5719-llvm-9de2ac8e8b08b9f914acf331a64142818017bd1f.zip
Clarify some comments.
llvm-svn: 60683
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 1df6c7d2732..52b57d6d2ea 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud