projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b8d5b
)
Enable the loop vectorizer in clang and not in the pass manager, so that we can disab...
author
Nadav Rotem
<nrotem@apple.com>
Tue, 18 Dec 2012 23:09:44 +0000
(23:09 +0000)
committer
Nadav Rotem
<nrotem@apple.com>
Tue, 18 Dec 2012 23:09:44 +0000
(23:09 +0000)
llvm-svn: 170470
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
index
7351183
..
a9a9f2e
100644
(file)
--- a/
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ b/
llvm/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 (
tru
e && OptLevel > 1)
+ if (
LoopVectoriz
e && OptLevel > 1)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)