[llvm-branch-commits] [llvm] [MC][NFC] Statically allocate storage for decoded pseudo probes and function records (PR #102789)
Lei Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Aug 15 00:16:38 PDT 2024
================
@@ -1293,9 +1293,9 @@ void CSProfileGenerator::populateBodySamplesWithProbes(
// and will be inferred by the compiler.
for (auto &I : FrameSamples) {
for (auto *FunctionProfile : I.second) {
- for (auto *Probe : I.first->getProbes()) {
- FunctionProfile->addBodySamples(Probe->getIndex(),
- Probe->getDiscriminator(), 0);
+ for (auto &Probe : I.first->getProbes()) {
----------------
wlei-llvm wrote:
Seems this can be `const auto`
https://github.com/llvm/llvm-project/pull/102789
More information about the llvm-branch-commits
mailing list