Clarify invalidation strategy in comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2012-07-30 21:16:22 +00:00
parent ead66027e8
commit 20f13c50d8

View File

@ -211,6 +211,12 @@ public:
/// Invalidate cached information about MBB. This must be called *before* MBB /// Invalidate cached information about MBB. This must be called *before* MBB
/// is erased, or the CFG is otherwise changed. /// is erased, or the CFG is otherwise changed.
///
/// This invalidates per-block information about resource usage for MBB only,
/// and it invalidates per-trace information for any trace that passes
/// through MBB.
///
/// Call Ensemble::getTrace() again to update any trace handles.
void invalidate(const MachineBasicBlock *MBB); void invalidate(const MachineBasicBlock *MBB);
private: private: