[all-commits] [llvm/llvm-project] fe1d11: [KeyInstr] Fix DILocation AtomGroup/Rank bitfield ...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Tue May 6 00:52:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe1d1159be269309b5cbb9889c7ebe99cebfd940
      https://github.com/llvm/llvm-project/commit/fe1d1159be269309b5cbb9889c7ebe99cebfd940
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/lib/IR/LLVMContextImpl.h

  Log Message:
  -----------
  [KeyInstr] Fix DILocation AtomGroup/Rank bitfield packing for MSVC (#138292)

Follow up to #133477.

As nikic pointed out: We need to use uint64_t for both fields to get
actual bit packing with msvc (https://c.godbolt.org/z/1f556c1zb).

The cast to u8 in hash_combine prevents an increase in compile time
(+0.16% for stage1-O0-g on compile-time-tracker).



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