diff options
author | Fangrui Song <maskray@google.com> | 2020-05-13 17:16:54 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-05-14 10:37:33 -0700 |
commit | 5ecb51414637402b0f89a96924ac7b015d23bcfa (patch) | |
tree | 0a8d989612f8349ef247f69b934661207086c361 /clang/lib/Basic/SourceManager.cpp | |
parent | f5a79713b612376baae54cb47c8ec87b14f4b9b3 (diff) | |
download | llvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.zip llvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.tar.gz llvm-5ecb51414637402b0f89a96924ac7b015d23bcfa.tar.bz2 |
[Driver] Pass -plugin-opt=O2 for -Os -Oz and -plugin-opt=O1 for -Og
Fixes PR42445 (compiler driver options -Os -Oz translate to
-plugin-opt=Os (Oz) which are not recognized by LLVMgold.so or LLD).
The optimization level mapping matches
CompilerInvocation.cpp:getOptimizationLevel() and SpeedLevel of
PassBuilder::OptimizationLevel::O*.
-plugin-opt=O* affects the way we construct regular LTO/ThinLTO pass
manager pipeline.
Reviewed By: pcc
Differential Revision: https://reviews.llvm.org/D79919
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions