[all-commits] [llvm/llvm-project] 022762: [BOLT][BAT] Support multi-way split functions

Amir Ayupov via All-commits all-commits at lists.llvm.org
Fri Apr 5 17:51:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0227623915bf0b4794bdbc64974f6cbd6fcc1611
      https://github.com/llvm/llvm-project/commit/0227623915bf0b4794bdbc64974f6cbd6fcc1611
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-04-05 (Fri, 05 Apr 2024)

  Changed paths:
    M bolt/lib/Profile/BoltAddressTranslation.cpp
    M bolt/test/X86/yaml-secondary-entry-discriminator.s

  Log Message:
  -----------
  [BOLT][BAT] Support multi-way split functions

BAT writeMaps encoded the assumption that functions are only split into
two fragments (hot and cold). However, BOLT supports splitting into
arbitrary number of fragments. Relax that assumption and look up primary
(hot) fragment explicitly.

Depends on: https://github.com/llvm/llvm-project/pull/86219

Test Plan: Updated bolt/test/X86/yaml-secondary-entry-discriminator.s

Reviewers: ayermolo, rafaelauler, maksfb, dcci

Reviewed By: maksfb, dcci

Pull Request: https://github.com/llvm/llvm-project/pull/87123



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