[llvm-commits] [llvm] r139498 - /llvm/trunk/lib/CodeGen/SplitKit.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Sep 12 09:03:26 PDT 2011
Author: stoklund
Date: Mon Sep 12 11:03:26 2011
New Revision: 139498
URL: http://llvm.org/viewvc/llvm-project?rev=139498&view=rev
Log:
Update comments to reflect some (not so) recent changes.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.h
Modified: llvm/trunk/lib/CodeGen/SplitKit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.h?rev=139498&r1=139497&r2=139498&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.h (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.h Mon Sep 12 11:03:26 2011
@@ -255,7 +255,7 @@
// 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 @@
// 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
More information about the llvm-commits
mailing list