[PATCH] D72386: [ThinLTO] pass UnrollLoops/VectorizeLoop/VectorizeSLP in CGOpts down to pass builder in ltobackend
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 13:13:38 PST 2020
wmi updated this revision to Diff 237170.
wmi marked 2 inline comments as done.
wmi added a comment.
Herald added subscribers: MaskRay, aheejin, arichardson, sbc100, emaste.
Herald added a reviewer: espindola.
Enable loop and slp vectorization in O2 <https://reviews.llvm.org/owners/package/2/>/O3 <https://reviews.llvm.org/owners/package/3/> (Os for opt as well) in gold plugin, lld, opt and llvm-lto2. Add related tests.
There are still some issues like we cannot override the default setting in O2 <https://reviews.llvm.org/owners/package/2/>/O3 <https://reviews.llvm.org/owners/package/3/> using internal flags like -vectorize-loops, -vectorize-slp, and the issues like those setting are now hard coded in old pass manager which Teresa mentioned. I leave them as it is for the moment and let this patch just handle the major issue of slp being disabled in thinlto backend.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72386/new/
https://reviews.llvm.org/D72386
Files:
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/thinlto-slp-vectorize-pm.c
lld/COFF/CMakeLists.txt
lld/ELF/CMakeLists.txt
lld/ELF/LTO.cpp
lld/test/ELF/lto/slp-vectorize-pm.ll
lld/wasm/CMakeLists.txt
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/new-pm-thinlto-defaults.ll
llvm/test/tools/gold/X86/slp-vectorize-pm.ll
llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-lto2/CMakeLists.txt
llvm/tools/llvm-lto2/llvm-lto2.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72386.237170.patch
Type: text/x-patch
Size: 18589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200109/7a400866/attachment.bin>
More information about the llvm-commits
mailing list