diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-12 01:11:46 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-12 01:11:46 +0000 |
commit | 5da804150d418b8b4956b84013f8f67df553c543 (patch) | |
tree | 5a923953dc1f5952501c9787ec0bad141227048f /lib/Transforms/Vectorize/Vectorize.cpp | |
parent | 61f4dfe3693bf68b20748d82ac4dd9bf2f356699 (diff) |
LoopVectorizer: When -Os is used, vectorize only loops that dont require a tail loop. There is no testcase because I dont know of a way to initialize the loop vectorizer pass without adding an additional hidden flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/Vectorize.cpp')
-rw-r--r-- | lib/Transforms/Vectorize/Vectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/Vectorize.cpp b/lib/Transforms/Vectorize/Vectorize.cpp index 3fb36cadea..cf7d4ee8b2 100644 --- a/lib/Transforms/Vectorize/Vectorize.cpp +++ b/lib/Transforms/Vectorize/Vectorize.cpp @@ -1,4 +1,4 @@ -//===-- Vectorize.cpp -----------------------------------------------------===// + //===-- Vectorize.cpp -----------------------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -39,5 +39,5 @@ void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) { } void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) { - unwrap(PM)->add(createLoopVectorizePass()); + unwrap(PM)->add(createLoopVectorizePass(0)); } |