[all-commits] [llvm/llvm-project] a3ac1c: [SampleProfile] Fix non-determinism in promoteMerg...

aeubanks via All-commits all-commits at lists.llvm.org
Fri Aug 12 10:18:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3ac1cfaedf708dc6b0db060c24339adeeb7a1ec
      https://github.com/llvm/llvm-project/commit/a3ac1cfaedf708dc6b0db060c24339adeeb7a1ec
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [SampleProfile] Fix non-determinism in promoteMergeNotInlinedContextSamples()

We're seeing non-determinism with loading sample profiles. It seems to
be related to the order in which we merge FunctionSamples in
promoteMergeNotInlinedContextSamples(). Use a MapVector to iterate over
NonInlinedCallSites in the order entries were inserted.

Reviewed By: wenlei, davidxl

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




More information about the All-commits mailing list