[all-commits] [llvm/llvm-project] d36b26: [ELF] Optimization to LinkerScript::computeInputSe...
Andrew Ng via All-commits
all-commits at lists.llvm.org
Thu Jan 16 05:56:41 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d36b2649e5e4d90a3f439e2a16057cd75566c669
https://github.com/llvm/llvm-project/commit/d36b2649e5e4d90a3f439e2a16057cd75566c669
Author: Andrew Ng <andrew.ng at sony.com>
Date: 2020-01-16 (Thu, 16 Jan 2020)
Changed paths:
M lld/ELF/LinkerScript.cpp
Log Message:
-----------
[ELF] Optimization to LinkerScript::computeInputSections NFC
Moved the section name check ahead of any filename matching or
exclusion. Firstly, this reduces the need to retrieve the filename and
secondly, reduces the amount of potentially expensive filename pattern
matching if such rules are present in the linker script.
The impact of this change is particularly significant when linking
objects built with -ffunction-sections and -fstack-size-section, using a
linker script that includes non-trivial filename patterns. In a number
of such cases, the link time is halved.
Differential Revision: https://reviews.llvm.org/D72775
More information about the All-commits
mailing list