[all-commits] [llvm/llvm-project] 5ee34f: MC: Optimize emitInstruction and simplify fragment...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jul 20 00:09:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ee34ff1e5cc952116f0da943ddaeb1a71db2940
      https://github.com/llvm/llvm-project/commit/5ee34ff1e5cc952116f0da943ddaeb1a71db2940
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-07-20 (Sun, 20 Jul 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp
    M llvm/test/MC/COFF/bss-text.s
    M llvm/test/MC/COFF/section.s
    M llvm/test/MC/ELF/nobits-non-zero-value.s

  Log Message:
  -----------
  MC: Optimize emitInstruction and simplify fragment-in-BSS check

Move the FT_Relaxable-in-BSS check from frequently-called
MCObjectStreamer::emitInstruction to MCAssembler::writeSectionData,
along with existing checks for other fragment types. For the uncommon
diagnostics, losing the location information is acceptable.



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