From: Francis Visoiu Mistrih Date: Wed, 13 Jun 2018 20:44:02 +0000 (+0000) Subject: Revert r334649 "[Timers] Use the pass argument name for JSON keys in time-passes" X-Git-Tag: llvmorg-7.0.0-rc1~3800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c3a7761f38f37aca52b9e0d5f9340042799d9c8;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp index 46bfba7f5a0b..b04787cb30eb 100644 --- a/llvm/lib/IR/LegacyPassManager.cpp +++ b/llvm/lib/IR/LegacyPassManager.cpp @@ -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; } diff --git a/llvm/test/CodeGen/X86/time-passes-json-stats.ll b/llvm/test/CodeGen/X86/time-passes-json-stats.ll deleted file mode 100644 index 70049b2363e9..000000000000 --- a/llvm/test/CodeGen/X86/time-passes-json-stats.ll +++ /dev/null @@ -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 }