[PATCH] D147456: [AutoFDO] Stale profile matching(part 1)

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 7 10:57:50 PDT 2023


davidxl added inline comments.


================
Comment at: llvm/include/llvm/ProfileData/SampleProf.h:848
+      return Loc;
+    const auto &NewLoc = IRToProfileLocationMap->find(Loc);
+    if (NewLoc != IRToProfileLocationMap->end())
----------------
NewLoc can be confusing. Perhaps name it "OrigLoc" or "ProfileLoc".


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147456



More information about the llvm-commits mailing list