[llvm] cb813ab - [Attributor][NFC] Improve time trace output
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 20:08:32 PDT 2020
Author: Johannes Doerfert
Date: 2020-10-27T22:07:54-05:00
New Revision: cb813ab66a174396e90f92b65d74b4d813dd9c8d
URL: https://github.com/llvm/llvm-project/commit/cb813ab66a174396e90f92b65d74b4d813dd9c8d
DIFF: https://github.com/llvm/llvm-project/commit/cb813ab66a174396e90f92b65d74b4d813dd9c8d.diff
LOG: [Attributor][NFC] Improve time trace output
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 473ec54f3aef..ef830796f168 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!");
More information about the llvm-commits
mailing list