diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-30 21:16:22 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-30 21:16:22 +0000 |
commit | 20f13c50d88560d75129f4a691fe6b477d04dc70 (patch) | |
tree | 8b22d1a3adf50ee69bfad5b9033b8db169e29565 /lib/CodeGen/MachineTraceMetrics.h | |
parent | ead66027e8a93dbbb9eec37807c34585aeafe67b (diff) |
Clarify invalidation strategy in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineTraceMetrics.h')
-rw-r--r-- | lib/CodeGen/MachineTraceMetrics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineTraceMetrics.h b/lib/CodeGen/MachineTraceMetrics.h index 56ea74ea85..732e4f6ef3 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: |