Clarify invalidation strategy in comment.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 30 Jul 2012 21:16:22 +0000 (21:16 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 30 Jul 2012 21:16:22 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160997 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineTraceMetrics.h

index 56ea74ea85ff7324b915af3d2f40a4c6798f59e0..732e4f6ef397a06d753cc63af57cd5e37387b33d 100644 (file)
@@ -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: