1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Revert r334649 "[Timers] Use the pass argument name for JSON keys in time-passes"

This reverts commit r334649.

This breaks a test.

llvm-svn: 334651
This commit is contained in:
Francis Visoiu Mistrih 2018-06-13 20:44:02 +00:00
parent b88ba4150b
commit 11b5edffb3
2 changed files with 1 additions and 19 deletions

View File

@ -545,11 +545,7 @@ public:
Timer *&T = TimingData[P];
if (!T) {
StringRef PassName = P->getPassName();
StringRef PassArgument;
if (const PassInfo *PI = Pass::lookupPassInfo(P->getPassID()))
PassArgument = PI->getPassArgument();
T = new Timer(PassArgument.empty() ? PassName : PassArgument, PassName,
TG);
T = new Timer(PassName, PassName, TG);
}
return T;
}

View File

@ -1,14 +0,0 @@
; RUN: llc -mtriple=x86_64-- -stats-json=true -stats -time-passes %s -o /dev/null 2>&1 | FileCheck %s
; Verify that we use the argument pass name instead of the full name as a json
; key for timers.
;
; CHECK: {
; CHECK-NEXT: "asm-printer.EmittedInsts":
; CHECK-NOT: Virtual Register Map
; CHECK: "time.pass.virtregmap.wall":
; CHECK: "time.pass.virtregmap.user":
; CHECK: "time.pass.virtregmap.sys":
; CHECK: Virtual Register Map
define void @test_stats() { ret void }