aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-26 01:40:48 +0000
committerMatthias Braun <matze@braunis.de>2016-01-26 01:40:48 +0000
commitdb320773e1ebbff3d6e30f9ce2f942039256c9b0 (patch)
tree02eb251e0bdc4e4ad6e7100d4a674bbc416aa153 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentfedb8d4bab1e12fcb6d4bcf2dda7accf1b42eb97 (diff)
downloadllvm-db320773e1ebbff3d6e30f9ce2f942039256c9b0.zip
llvm-db320773e1ebbff3d6e30f9ce2f942039256c9b0.tar.gz
llvm-db320773e1ebbff3d6e30f9ce2f942039256c9b0.tar.bz2
LiveIntervalAnalysis: Improve some comments
As recommended by Justin. llvm-svn: 258771
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index bcc276f..bab3d0d 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1045,7 +1045,7 @@ private:
if (MO->isReg() && MO->isUse())
MO->setIsKill(false);
// Adjust OldIdxIn->end to reach NewIdx. This may temporarily make LR
- // invalid by overlapping ranges. Case 5 above.
+ // invalid by overlapping ranges.
bool isKill = SlotIndex::isSameInstr(OldIdx, OldIdxIn->end);
OldIdxIn->end = NewIdx.getRegSlot(OldIdxIn->end.isEarlyClobber());
// If this was not a kill, then there was no def and we're done.
@@ -1166,13 +1166,13 @@ private:
"Same value defined more than once?");
// If OldIdx was a dead def remove it.
if (!OldIdxDefIsDead) {
- // Case 3: Remove segment starting at NewIdx and move begin of OldIdxOut
- // to NewIdx so it can take its place.
+ // Remove segment starting at NewIdx and move begin of OldIdxOut to
+ // NewIdx so it can take its place.
OldIdxVNI->def = NewIdxDef;
OldIdxOut->start = NewIdxDef;
LR.removeValNo(NewIdxOut->valno);
} else {
- // Case 4: Remove the dead def at OldIdx.
+ // Simply remove the dead def at OldIdx.
LR.removeValNo(OldIdxVNI);
}
} else {