[all-commits] [llvm/llvm-project] e338f8: [gcov] Fix non-determinism (DenseMap iteration ord...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 5 12:39:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e338f8fe69b869afd8adf53919bd578aaf14fb2f
      https://github.com/llvm/llvm-project/commit/e338f8fe69b869afd8adf53919bd578aaf14fb2f
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp

  Log Message:
  -----------
  [gcov] Fix non-determinism (DenseMap iteration order) of checksum computation

... by using MapVector. The issue was caused by 63182c2ac0b643a60d397274e8a31166fc7243fa.

Also use stable_partition instead of partition to get stable results
across different STL implementations.




More information about the All-commits mailing list