From: Jakob Stoklund Olesen Date: Mon, 12 Sep 2011 16:03:26 +0000 (+0000) Subject: Update comments to reflect some (not so) recent changes. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3d4ec14ffc6b957b9418578567a5751ef6f80fdb;p=oota-llvm.git Update comments to reflect some (not so) recent changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139498 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 89ce24b28a9..becd22ca536 100644 --- a/lib/CodeGen/SplitKit.h +++ b/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