aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorAndrew Ng <andrew.ng@sony.com>2020-01-15 11:48:37 +0000
committerAndrew Ng <andrew.ng@sony.com>2020-01-16 13:56:02 +0000
commitd36b2649e5e4d90a3f439e2a16057cd75566c669 (patch)
tree8b3e8c671cbc759984bfa9e739e076180090c8fe /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parentd54d71b67e602674a255e299a22fe31dee1f3619 (diff)
downloadllvm-d36b2649e5e4d90a3f439e2a16057cd75566c669.zip
llvm-d36b2649e5e4d90a3f439e2a16057cd75566c669.tar.gz
llvm-d36b2649e5e4d90a3f439e2a16057cd75566c669.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions