[all-commits] [llvm/llvm-project] cb09b5: [MC] Disable MCAssembler based constant folding fo...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 4 15:06:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb09b5f3d53e5b7b4452bb3db78dca79fc9b3f17
      https://github.com/llvm/llvm-project/commit/cb09b5f3d53e5b7b4452bb3db78dca79fc9b3f17
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/MC/MCDwarf.cpp

  Log Message:
  -----------
  [MC] Disable MCAssembler based constant folding for compact unwind and emitJumpTableEntry

Similar to commit 245491a9f384e4c53421196533c2a2b693efaf8d for DwarfDebug.

This completely disables the expensive MCFragment walk code in
`AttemptToFoldSymbolOffsetDifference` when compiling sqlite3.i for
macOS.

In the future, we should try enabling the MCFragment walk only for
constructs like `.if . -_start == 1` and `.subsection a-b` and
remove these `setUseAssemblerInfoForParsing`.



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