[PATCH] D137203: [llvm-profgen] Fix a typo in collectProfiledFunctions

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 16:52:57 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc566777818bc: [llvm-profgen] Fix a typo in collectProfiledFunctions (authored by hoy).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137203/new/

https://reviews.llvm.org/D137203

Files:
  llvm/tools/llvm-profgen/ProfileGenerator.cpp


Index: llvm/tools/llvm-profgen/ProfileGenerator.cpp
===================================================================
--- llvm/tools/llvm-profgen/ProfileGenerator.cpp
+++ llvm/tools/llvm-profgen/ProfileGenerator.cpp
@@ -434,7 +434,7 @@
 
     for (auto Item : CI.second.BranchCounter) {
       uint64_t SourceAddress = Item.first.first;
-      uint64_t TargetAddress = Item.first.first;
+      uint64_t TargetAddress = Item.first.second;
       if (FuncRange *FRange = Binary->findFuncRange(SourceAddress))
         ProfiledFunctions.insert(FRange->Func);
       if (FuncRange *FRange = Binary->findFuncRange(TargetAddress))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137203.472453.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221101/699f0f40/attachment.bin>


More information about the llvm-commits mailing list