[PATCH] D126827: [llvm-profgen] Fix a loading address bug for pseudo probe profile

Lei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 16:20:12 PDT 2022


wlei added inline comments.


================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:745
+        if (UseLoadableSegmentAsBase) {
+          Start -= Binary->getFirstLoadableAddress();
+          End -= Binary->getFirstLoadableAddress();
----------------
hoy wrote:
> I'm a bit confused here. What is the semantics of using both offset and LoadableSegmentAsBase?
I think this is to be compatible to our internal old tool where some services use offset and the FirstLoadableAddress as the output of unsymbolized profile.

The original patch is https://reviews.llvm.org/D113727.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126827



More information about the llvm-commits mailing list