Author: Arthur Eubanks Date: 2020-12-09T17:48:47-08:00 New Revision: cc15e75ce8ee5aff87fd129f748e2a9899a76b8b
URL: https://github.com/llvm/llvm-project/commit/cc15e75ce8ee5aff87fd129f748e2a9899a76b8b DIFF: https://github.com/llvm/llvm-project/commit/cc15e75ce8ee5aff87fd129f748e2a9899a76b8b.diff LOG: [LTO][NPM] Default to using NPM under ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER This affects users of LTO that don't explicitly set UseNewPM. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D92894 Added: Modified: llvm/include/llvm/LTO/Config.h Removed: ################################################################################ diff --git a/llvm/include/llvm/LTO/Config.h b/llvm/include/llvm/LTO/Config.h index d96987f84d03..c4bf370fa3dd 100644 --- a/llvm/include/llvm/LTO/Config.h +++ b/llvm/include/llvm/LTO/Config.h @@ -15,6 +15,7 @@ #define LLVM_LTO_CONFIG_H #include "llvm/ADT/DenseSet.h" +#include "llvm/Config/llvm-config.h" #include "llvm/IR/DiagnosticInfo.h" #include "llvm/IR/GlobalValue.h" #include "llvm/IR/LLVMContext.h" @@ -50,7 +51,7 @@ struct Config { bool DisableVerify = false; /// Use the new pass manager - bool UseNewPM = false; + bool UseNewPM = LLVM_ENABLE_NEW_PASS_MANAGER; /// Flag to indicate that the optimizer should not assume builtins are present /// on the target. _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits