aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-18 23:09:44 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-18 23:09:44 +0000
commit62570c2813702814f9d7450ac4c4df065b8b6ccc (patch)
tree8171e361ecb904d4c488222de0ce81e5409c0ceb
parent582abddeee6bd49762d562d3e641a4e290d464be (diff)
Enable the loop vectorizer in clang and not in the pass manager, so that we can disable it in clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170470 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/PassManagerBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp
index 73511838d4..a9a9f2eece 100644
--- a/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ b/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -188,7 +188,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
- if (true && OptLevel > 1)
+ if (LoopVectorize && OptLevel > 1)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)