[all-commits] [llvm/llvm-project] 73f5f8: [BasicBlockSections] Using MBBSectionID as DenseMa...

Haohai Wen via All-commits all-commits at lists.llvm.org
Wed Jul 3 18:52:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73f5f83b192b0a27f7edae5365c247961d9f1bd9
      https://github.com/llvm/llvm-project/commit/73f5f83b192b0a27f7edae5365c247961d9f1bd9
  Author: Haohai Wen <haohai.wen at intel.com>
  Date:   2024-07-04 (Thu, 04 Jul 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/AsmPrinter.h
    M llvm/include/llvm/CodeGen/MachineBasicBlock.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp

  Log Message:
  -----------
  [BasicBlockSections] Using MBBSectionID as DenseMap key (#97295)

getSectionIDNum may return same value for two different MBBSectionID.
e.g. A Cold type MBBSectionID with number 0 and a Default type
MBBSectionID with number 2 get same value 2 from getSectionIDNum. This
may lead to overwrite of MBBSectionRanges.  Using MBBSectionID itself
as DenseMap key is better choice.



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