[all-commits] [llvm/llvm-project] 66e277: [InstrProfiling] Support relative CountersPtr for ...

jsji via All-commits all-commits at lists.llvm.org
Wed Aug 18 10:46:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66e2772e4285588ccc3bcdb5f392c8326debbd7d
      https://github.com/llvm/llvm-project/commit/66e2772e4285588ccc3bcdb5f392c8326debbd7d
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingPlatformOther.c

  Log Message:
  -----------
  [InstrProfiling] Support relative CountersPtr for PlatformOther

D104556 change the CountersPtr to be relative, however, it did not
update the pointer initialization in  __llvm_profile_register_function,
so the platform (eg:AIX) that use __llvm_profile_register_function is now totaly
broken, any PGO code will SEGV.

This patch update the code to reflect that the Data->CountersPtr is now
relative.

Reviewed By: MaskRay, davidxl

Differential Revision: https://reviews.llvm.org/D108304




More information about the All-commits mailing list