From: Jakob Stoklund Olesen Date: Mon, 30 Jul 2012 21:16:22 +0000 (+0000) Subject: Clarify invalidation strategy in comment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20f13c50d88560d75129f4a691fe6b477d04dc70;p=oota-llvm.git Clarify invalidation strategy in comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160997 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineTraceMetrics.h b/lib/CodeGen/MachineTraceMetrics.h index 56ea74ea85f..732e4f6ef39 100644 --- a/lib/CodeGen/MachineTraceMetrics.h +++ b/lib/CodeGen/MachineTraceMetrics.h @@ -211,6 +211,12 @@ public: /// Invalidate cached information about MBB. This must be called *before* MBB /// 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); private: