[Attributor][NFC] Improve time trace output
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 10 Oct 2020 14:28:47 +0000 (09:28 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 28 Oct 2020 03:07:54 +0000 (22:07 -0500)
llvm/lib/Transforms/IPO/Attributor.cpp

index 473ec54..ef83079 100644 (file)
@@ -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!");