[llvm-branch-commits] [lld] fa602d7 - [ELF][LTO][NPM] Use NPM with ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
Arthur Eubanks via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 8 15:17:46 PST 2020
Author: Arthur Eubanks
Date: 2020-12-08T15:12:57-08:00
New Revision: fa602d74f608f817a1e39af3163e5878b832e9df
URL: https://github.com/llvm/llvm-project/commit/fa602d74f608f817a1e39af3163e5878b832e9df
DIFF: https://github.com/llvm/llvm-project/commit/fa602d74f608f817a1e39af3163e5878b832e9df.diff
LOG: [ELF][LTO][NPM] Use NPM with ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D92885
Added:
Modified:
lld/ELF/Driver.cpp
Removed:
################################################################################
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 87ca200877df..2350a0e33638 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -47,6 +47,7 @@
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/LTO/LTO.h"
#include "llvm/Remarks/HotnessThresholdParser.h"
#include "llvm/Support/CommandLine.h"
@@ -990,8 +991,9 @@ static void readConfigs(opt::InputArgList &args) {
config->ltoCSProfileFile = args.getLastArgValue(OPT_lto_cs_profile_file);
config->ltoDebugPassManager = args.hasArg(OPT_lto_debug_pass_manager);
config->ltoEmitAsm = args.hasArg(OPT_lto_emit_asm);
- config->ltoNewPassManager = args.hasFlag(OPT_lto_new_pass_manager,
- OPT_no_lto_new_pass_manager, false);
+ config->ltoNewPassManager =
+ args.hasFlag(OPT_lto_new_pass_manager, OPT_no_lto_new_pass_manager,
+ LLVM_ENABLE_NEW_PASS_MANAGER);
config->ltoNewPmPasses = args.getLastArgValue(OPT_lto_newpm_passes);
config->ltoWholeProgramVisibility =
args.hasFlag(OPT_lto_whole_program_visibility,
More information about the llvm-branch-commits
mailing list