From cb813ab66a174396e90f92b65d74b4d813dd9c8d Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Sat, 10 Oct 2020 09:28:47 -0500 Subject: [PATCH] [Attributor][NFC] Improve time trace output --- llvm/lib/Transforms/IPO/Attributor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 473ec54..ef83079 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -1384,7 +1384,9 @@ ChangeStatus Attributor::run() { } ChangeStatus Attributor::updateAA(AbstractAttribute &AA) { - TimeTraceScope TimeScope(AA.getName() + "::updateAA"); + TimeTraceScope TimeScope( + AA.getName() + std::to_string(AA.getIRPosition().getPositionKind()) + + "::updateAA"); assert(Phase == AttributorPhase::UPDATE && "We can update AA only in the update stage!"); -- 2.7.4