[all-commits] [llvm/llvm-project] 169ec2: [ELF] Rename canRelax to toExecRelax. NFC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Jul 8 10:28:51 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 169ec2d6b006ea31114a7d6ddc3f002d3cb4acb3
https://github.com/llvm/llvm-project/commit/169ec2d6b006ea31114a7d6ddc3f002d3cb4acb3
Author: Fangrui Song <maskray at google.com>
Date: 2020-07-08 (Wed, 08 Jul 2020)
Changed paths:
M lld/ELF/Relocations.cpp
Log Message:
-----------
[ELF] Rename canRelax to toExecRelax. NFC
In the absence of TLS relaxation (rewrite of code sequences),
there is still an applicable optimization:
[gd]: General Dynamic: resolve DTPMOD to 1 and/or resolve DTPOFF statically
All the other relaxations are only performed when transiting to
executable (`!config->shared`).
Since [gd] is handled differently, we can fold `!config->shared` into canRelax
and simplify its use sites. Rename the variable to reflect to new semantics.
Reviewed By: grimar, psmith
Differential Revision: https://reviews.llvm.org/D83243
More information about the All-commits
mailing list