[llvm] ad61e34 - [gcov] Give the __llvm_gcov_ctr load instruction a name for more readable output
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 12:34:51 PDT 2020
Author: Fangrui Song
Date: 2020-09-09T12:34:43-07:00
New Revision: ad61e346d302eccbc12fdfb81ea1b0cd28e80010
URL: https://github.com/llvm/llvm-project/commit/ad61e346d302eccbc12fdfb81ea1b0cd28e80010
DIFF: https://github.com/llvm/llvm-project/commit/ad61e346d302eccbc12fdfb81ea1b0cd28e80010.diff
LOG: [gcov] Give the __llvm_gcov_ctr load instruction a name for more readable output
Added:
Modified:
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index 736d12629017..cc8b92e21c7c 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -890,7 +890,8 @@ bool GCOVProfiler::emitProfileArcs() {
Builder.CreateAtomicRMW(AtomicRMWInst::Add, V, Builder.getInt64(1),
AtomicOrdering::Monotonic);
} else {
- Value *Count = Builder.CreateLoad(Builder.getInt64Ty(), V);
+ Value *Count =
+ Builder.CreateLoad(Builder.getInt64Ty(), V, "gcov_ctr");
Count = Builder.CreateAdd(Count, Builder.getInt64(1));
Builder.CreateStore(Count, V);
}
More information about the llvm-commits
mailing list