[all-commits] [llvm/llvm-project] 85cfd9: [ELF] Optimize some non-constant alignTo with alig...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jul 24 11:21:07 PDT 2022


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

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/ScriptParser.cpp
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/Writer.cpp
    M lld/test/ELF/linkerscript/operators.test
    M llvm/include/llvm/Support/MathExtras.h

  Log Message:
  -----------
  [ELF] Optimize some non-constant alignTo with alignToPowerOf2. NFC

My x86-64 lld executable is 2KiB smaller. .eh_frame writing gets faster as there
were lots of divisions.




More information about the All-commits mailing list