From 984cfe83228dddfee148d3668ef824b49fec137d Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Mon, 30 Jul 2012 21:16:22 +0000 Subject: Clarify invalidation strategy in comment. llvm-svn: 160997 --- llvm/lib/CodeGen/MachineTraceMetrics.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.h') diff --git a/llvm/lib/CodeGen/MachineTraceMetrics.h b/llvm/lib/CodeGen/MachineTraceMetrics.h index 56ea74ea85f..732e4f6ef39 100644 --- a/llvm/lib/CodeGen/MachineTraceMetrics.h +++ b/llvm/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: -- cgit v1.2.3