projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf9292
)
[lto] Enable new PM when the PM config is non-empty
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 15 Feb 2021 19:49:09 +0000
(20:49 +0100)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 15 Feb 2021 19:49:09 +0000
(20:49 +0100)
This restores the behavior before
964f8103c58d
, which broke 2 tests:
LLVM :: tools/llvm-lto2/X86/pipeline.ll
lld :: ELF/lto/ltopasses-custom.ll
llvm/lib/LTO/LTOBackend.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/LTO/LTOBackend.cpp
b/llvm/lib/LTO/LTOBackend.cpp
index
5eaa621
..
954aa2b
100644
(file)
--- a/
llvm/lib/LTO/LTOBackend.cpp
+++ b/
llvm/lib/LTO/LTOBackend.cpp
@@
-355,7
+355,7
@@
bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod,
/*Cmdline*/ CmdArgs);
}
// FIXME: Plumb the combined index into the new pass manager.
- if (Conf.UseNewPM) {
+ if (Conf.UseNewPM
|| !Conf.OptPipeline.empty()
) {
runNewPMPasses(Conf, Mod, TM, Conf.OptLevel, IsThinLTO, ExportSummary,
ImportSummary);
} else {