[all-commits] [llvm/llvm-project] f69661: [BFI] Use MapVector in combineWeightsByHashing. (#...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 29 02:48:43 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f69661de1c6fd034afabc2acf79a888cf7b58c5c
      https://github.com/llvm/llvm-project/commit/f69661de1c6fd034afabc2acf79a888cf7b58c5c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
    A llvm/test/Analysis/BlockFrequencyInfo/many-successors-order.ll

  Log Message:
  -----------
  [BFI] Use MapVector in combineWeightsByHashing. (#227027)

combineWeightsByHashing iterated over a DenseMap, which depends on the
hash. Use MapVector to get consistent results, independent of index
type/values.

This is mainly to ensure consistency between users that use different
index numbers, i.e. used for IR BFI and VPlan's use.

PR: https://github.com/llvm/llvm-project/pull/227027



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list