summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-30 21:16:22 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-30 21:16:22 +0000
commit984cfe83228dddfee148d3668ef824b49fec137d (patch)
tree39aef46db6f8006bf21e08ac8c0088da5cea2a07 /llvm/lib
parent7e9f6d7d58bde0102161c939200ff2019213256a (diff)
downloadbcm5719-llvm-984cfe83228dddfee148d3668ef824b49fec137d.tar.gz
bcm5719-llvm-984cfe83228dddfee148d3668ef824b49fec137d.zip
Clarify invalidation strategy in comment.
llvm-svn: 160997
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineTraceMetrics.h6
1 files changed, 6 insertions, 0 deletions
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:
OpenPOWER on IntegriCloud