[all-commits] [llvm/llvm-project] 49deb5: [MC] Make pseudo-probe divisions ordering stable (...

Navya via All-commits all-commits at lists.llvm.org
Fri Aug 7 18:22:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49deb5286c91c91155f557255c5be0c18127481e
      https://github.com/llvm/llvm-project/commit/49deb5286c91c91155f557255c5be0c18127481e
  Author: Navya <navyajayesh+1 at gmail.com>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M llvm/lib/MC/MCPseudoProbe.cpp
    A llvm/test/MC/ELF/pseudoprobe-order.s

  Log Message:
  -----------
  [MC] Make pseudo-probe divisions ordering stable (#214803)

**Problem**

`MCPseudoProbeSections::emit` sorts probe divisions only by section
ordinal.

Functions sharing a section will have a nondeterministic `unordered_map`
iteration order, producing *different .pseudo_probe bytes for identical
inputs.*

**Solution**


Use the function symbol name as a stable tie-breaker when section
ordinals match.

Add an MC regression test that reverses pseudo-probe insertion order and
requires byte-identical object files.

---------

Co-authored-by: Navya Zaveri <23720432+NavyaZaveri at users.noreply.github.com>
Co-authored-by: Wei Wang <apollo.mobility at gmail.com>



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