[all-commits] [llvm/llvm-project] dc2f2d: [MemProf] Use stable_sort to avoid non-determinism

Teresa Johnson via All-commits all-commits at lists.llvm.org
Thu Mar 23 09:21:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dc2f2d2180f1d1a1835dc55478d3bcceea41a4b1
      https://github.com/llvm/llvm-project/commit/dc2f2d2180f1d1a1835dc55478d3bcceea41a4b1
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

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

  Log Message:
  -----------
  [MemProf] Use stable_sort to avoid non-determinism

Switch from std::sort to std::stable_sort when sorting callsites to
avoid non-determinism when the comparisons are equal. This showed up in
internal testing of fe27495be2040007c7b20844a9371b06156ab405.




More information about the All-commits mailing list