================
@@ -59,6 +68,8 @@ struct PfmCountersInfo {
   const IssueCounter *IssueCounters;
   unsigned NumIssueCounters;
 
+  std::unordered_map<ValidationEvent, const char *> ValidationCounters;
----------------
legrosbuffle wrote:

`unordered_map` means that:

 - We'll allocate on startup.
 - We don't have consistent ordering between runs, which might be a source of 
debugging pain.

Can we use a sorted array of `pair<ValidationEvent, const char*>` instead ?

https://github.com/llvm/llvm-project/pull/76652
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to