[llvm-commits] [llvm] r160997 - /llvm/trunk/lib/CodeGen/MachineTraceMetrics.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Jul 30 14:16:22 PDT 2012
Author: stoklund
Date: Mon Jul 30 16:16:22 2012
New Revision: 160997
URL: http://llvm.org/viewvc/llvm-project?rev=160997&view=rev
Log:
Clarify invalidation strategy in comment.
Modified:
llvm/trunk/lib/CodeGen/MachineTraceMetrics.h
Modified: llvm/trunk/lib/CodeGen/MachineTraceMetrics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineTraceMetrics.h?rev=160997&r1=160996&r2=160997&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineTraceMetrics.h (original)
+++ llvm/trunk/lib/CodeGen/MachineTraceMetrics.h Mon Jul 30 16:16:22 2012
@@ -211,6 +211,12 @@
/// 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:
More information about the llvm-commits
mailing list