Skip to content

Commit

Permalink
[LTO][NPM] Default to using NPM under ENABLE_EXPERIMENTAL_NEW_PASS_MA…
Browse files Browse the repository at this point in the history
…NAGER

This affects users of LTO that don't explicitly set UseNewPM.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D92894
  • Loading branch information
aeubanks committed Dec 10, 2020
1 parent 880aa6a commit cc15e75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/include/llvm/LTO/Config.h
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit cc15e75

Please sign in to comment.