[all-commits] [llvm/llvm-project] 745420: [ELF] Cache global variable `target` in relocate*

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 24 17:54:25 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 745420d3f4b050282e65cdf7893050fc90bf9c8a
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-12-24 (Fri, 24 Dec 2021)

  Changed paths:
    M lld/ELF/InputSection.cpp

  Log Message:
  [ELF] Cache global variable `target` in relocate*

This avoid repeated load of the unique_ptr in hot paths.

More information about the All-commits mailing list