summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-12 16:03:26 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-12 16:03:26 +0000
commit72c0ddfbc40aff24c76b2bb7a2ba62c62637c9db (patch)
tree1c969870eef4342b466877d629f8da844a64b633 /llvm/lib/CodeGen/SplitKit.h
parentfc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34 (diff)
downloadbcm5719-llvm-72c0ddfbc40aff24c76b2bb7a2ba62c62637c9db.tar.gz
bcm5719-llvm-72c0ddfbc40aff24c76b2bb7a2ba62c62637c9db.zip
Update comments to reflect some (not so) recent changes.
llvm-svn: 139498
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r--llvm/lib/CodeGen/SplitKit.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index 89ce24b28a9..becd22ca536 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -255,7 +255,7 @@ class SplitEditor {
// live-out value and its defining block.
// One of these conditions shall be true:
//
- // 1. !LiveOutCache.count(MBB)
+ // 1. !LiveOutSeen.count(MBB->getNumber())
// 2. LiveOutCache[MBB].second.getNode() == MBB
// 3. forall P in preds(MBB): LiveOutCache[P] == LiveOutCache[MBB]
//
@@ -264,12 +264,13 @@ class SplitEditor {
// VNI = Edit.get(RegIdx)->getVNInfoAt(LIS.getMBBEndIdx(MBB))
// Node = mbt_[LIS.getMBBFromIndex(VNI->def)]
//
- // The cache is also used as a visited set by extendRange(). It can be shared
- // by all the new registers because at most one is live out of each block.
+ // The cache can be shared by all the new registers because at most one is
+ // live out of each block.
LiveOutMap LiveOutCache;
// LiveOutSeen - Indexed by MBB->getNumber(), a bit is set for each valid
- // entry in LiveOutCache.
+ // entry in LiveOutCache. This is also used as a visited set for
+ // findReachingDefs().
BitVector LiveOutSeen;
/// LiveInBlock - Info for updateSSA() about a block where a register is
OpenPOWER on IntegriCloud