[llvm] InstProfiling: Give names to profc_bias and profc_addr. NFC. (PR #95587)
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 20:22:40 PDT 2024
================
@@ -926,10 +926,10 @@ Value *InstrLowerer::getCounterAddress(InstrProfCntrInstBase *I) {
if (TT.supportsCOMDAT())
Bias->setComdat(M.getOrInsertComdat(Bias->getName()));
}
- BiasLI = EntryBuilder.CreateLoad(Int64Ty, Bias);
+ BiasLI = EntryBuilder.CreateLoad(Int64Ty, Bias, "profc_bias");
}
auto *Add = Builder.CreateAdd(Builder.CreatePtrToInt(Addr, Int64Ty), BiasLI);
- return Builder.CreateIntToPtr(Add, Addr->getType());
+ return Builder.CreateIntToPtr(Add, Addr->getType(), "profc_addr");
----------------
chapuni wrote:
I tried removing `pgocount`. It was too intrusive for tests.
https://github.com/llvm/llvm-project/pull/95587
More information about the llvm-commits
mailing list