[clang] [llvm] Use global TimerGroups for both new pass manager and old pass manager timers (PR #130375)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 10:24:46 PDT 2025


================
@@ -62,16 +62,13 @@ class PassTimingInfo {
 
 private:
   StringMap<unsigned> PassIDCountMap; ///< Map that counts instances of passes
-  DenseMap<PassInstanceID, std::unique_ptr<Timer>> TimingData; ///< timers for pass instances
-  TimerGroup TG;
+  DenseMap<PassInstanceID, Timer *> TimingData; ///< timers for pass instances
----------------
aeubanks wrote:

I think we still want PassTimingInfo to own the Timers, so keep `unique_ptr`?

https://github.com/llvm/llvm-project/pull/130375


More information about the cfe-commits mailing list