Skip to content

Commit 4c2094b

Browse files
committed
Revert r169039, "Aggregate pass execution time report by pass ID instead of pass instance."
llvm-svn: 169134
1 parent a79a28b commit 4c2094b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/VMCore/PassManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ namespace {
444444
static ManagedStatic<sys::SmartMutex<true> > TimingInfoMutex;
445445

446446
class TimingInfo {
447-
DenseMap<AnalysisID, Timer*> TimingData;
447+
DenseMap<Pass*, Timer*> TimingData;
448448
TimerGroup TG;
449449
public:
450450
// Use 'create' member to get this.
@@ -454,7 +454,7 @@ class TimingInfo {
454454
~TimingInfo() {
455455
// Delete all of the timers, which accumulate their info into the
456456
// TimerGroup.
457-
for (DenseMap<AnalysisID, Timer*>::iterator I = TimingData.begin(),
457+
for (DenseMap<Pass*, Timer*>::iterator I = TimingData.begin(),
458458
E = TimingData.end(); I != E; ++I)
459459
delete I->second;
460460
// TimerGroup is deleted next, printing the report.
@@ -471,7 +471,7 @@ class TimingInfo {
471471
return 0;
472472

473473
sys::SmartScopedLock<true> Lock(*TimingInfoMutex);
474-
Timer *&T = TimingData[P->getPassID()];
474+
Timer *&T = TimingData[P];
475475
if (T == 0)
476476
T = new Timer(P->getPassName(), TG);
477477
return T;

0 commit comments

Comments
 (0)