[all-commits] [llvm/llvm-project] d63016: [CMake] Revert -Wl,-O3
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Dec 24 15:42:09 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d63016a86548e8231002a760bbe9eb817cd1eb00
https://github.com/llvm/llvm-project/commit/d63016a86548e8231002a760bbe9eb817cd1eb00
Author: Fangrui Song <i at maskray.me>
Date: 2021-12-24 (Fri, 24 Dec 2021)
Changed paths:
M llvm/cmake/modules/AddLLVM.cmake
Log Message:
-----------
[CMake] Revert -Wl,-O3
This reverts 8cb7876cb366b5803ca35d92313ea00eadf29b78 and follow-ups.
GNU ld/gold/ld.lld -O has nothing to do with any code related linker optimizations.
It has very small benefit (save 144Ki (.hash, .gnu_hash) with GNU ld, save 0.7%
.debug_str with gold/ld.lld) while it makes gold/ld.lld significantly slower
when linking RelWithDebInfo clang (gold: 16.437 vs 19.488; ld.lld: 1.882 vs 4.881).
More information about the All-commits
mailing list