[PATCH] D94783: [LTO] Remove options to disable inlining and GVNLoadPRE.
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 09:32:15 PST 2021
tejohnson added inline comments.
================
Comment at: llvm/lib/LTO/LTOCodeGenerator.cpp:579
PassManagerBuilder PMB;
- PMB.DisableGVNLoadPRE = DisableGVNLoadPRE;
- PMB.LoopVectorize = !DisableVectorization;
- PMB.SLPVectorize = !DisableVectorization;
- if (!DisableInline)
- PMB.Inliner = createFunctionInliningPass();
+ PMB.LoopVectorize = OptLevel > 1;
+ PMB.SLPVectorize = OptLevel > 1;
----------------
Both ThinLTOCodeGenerator.cpp and LTOBackend.cpp set these to true unconditionally. Should we be consistent here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94783/new/
https://reviews.llvm.org/D94783
More information about the llvm-commits
mailing list