diff options
author | Jacob Lambert <jacob.lambert@amd.com> | 2024-05-08 08:11:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 08:11:15 -0700 |
commit | 11a6799740f824282650aa9ec249b55dcf1a8aae (patch) | |
tree | ba98ea6788f43caba374861f931275e30763be08 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 50b45b24220ead33cf5cedc49c13e0336297e4eb (diff) | |
download | llvm-11a6799740f824282650aa9ec249b55dcf1a8aae.zip llvm-11a6799740f824282650aa9ec249b55dcf1a8aae.tar.gz llvm-11a6799740f824282650aa9ec249b55dcf1a8aae.tar.bz2 |
[clang][CodeGen] Omit pre-opt link when post-opt is link requested (#85672)
Currently, when the -relink-builtin-bitcodes-postop option is used we
link builtin bitcodes twice: once before optimization, and again after
optimization.
With this change, we omit the pre-opt linking when the option is set,
and we rename the option to the following:
-Xclang -mlink-builtin-bitcodes-postopt
(-Xclang -mno-link-builtin-bitcodes-postopt)
The goal of this change is to reduce compile time. We do lose the
theoretical benefits of pre-opt linking, but in practice these are small
than the overhead of linking twice. However we may be able to address
this in a future patch by adjusting the position of the builtin-bitcode
linking pass.
Compilations not setting the option are unaffected
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions