[PATCH] D104060: Machine IR Profile

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 18:08:11 PDT 2021


ellis added a comment.

In D104060#2823466 <https://reviews.llvm.org/D104060#2823466>, @MaskRay wrote:

> I have been slowly trying to making -fprofile-generate/-fprofile-instr-generate object files/linkaged images smaller (e.g. D103372 <https://reviews.llvm.org/D103372>) since last year (I have much to learn..).
> (I can test on Linux and Windows, so I'll try making both work. I don't have Mach-O but I am happy to report whatever issues I have found, though.)
> I do plan to try PC-relative relocations (I made such improvement for XRay: D78082 <https://reviews.llvm.org/D78082>/D78590 <https://reviews.llvm.org/D78590>/D87977 <https://reviews.llvm.org/D87977>; the only portability issue is that we will require the integrated assembler for mips64)
> and probably make the symbol in `__llvm_prf_data` local alias to avoid an `R_*_RELATIVE` dynamic relocation.
> (I need to study more about llvm-profdata.)

I'm really happy to see this work! I also have much to learn so I'll try to keep an eye out for related diffs in the future.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104060



More information about the llvm-commits mailing list