diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2014-02-24 18:19:31 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2014-02-24 18:19:31 +0000 |
commit | 137342f198093f68e112cd979782fae27bbb22ab (patch) | |
tree | 63212c3cceaa17bb1b378b540e27c3b3947128bc /lib/Transforms/IPO | |
parent | 35f35ee58acc4a96040585a0087ff13b98ecc8ae (diff) | |
download | llvm-137342f198093f68e112cd979782fae27bbb22ab.tar.gz llvm-137342f198093f68e112cd979782fae27bbb22ab.tar.bz2 llvm-137342f198093f68e112cd979782fae27bbb22ab.tar.xz |
LTO: Add the loop vectorizer to the LTO pipeline.
During the LTO phase LICM will move loop invariant global variables out of loops
(informed by GlobalModRef). This makes more loops countable presenting
opportunity for the loop vectorizer.
Adding the loop vectorizer improves some TSVC benchmarks and twolf/ref dataset
(5%) on x86-64.
radar://15970632
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/PassManagerBuilder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 69e6526c73..21d8e58db7 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -331,6 +331,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM, // Nuke dead stores. PM.add(createDeadStoreEliminationPass()); + // More loops are countable try to vectorize them. + PM.add(createLoopVectorizePass(true, true)); + // Cleanup and simplify the code after the scalar optimizations. PM.add(createInstructionCombiningPass()); |