projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enable the loop vectorizer in clang and not in the pass manager, so that we can disab...
[oota-llvm.git]
/
lib
/
Transforms
/
IPO
/
PassManagerBuilder.cpp
diff --git
a/lib/Transforms/IPO/PassManagerBuilder.cpp
b/lib/Transforms/IPO/PassManagerBuilder.cpp
index 73511838d43941b102b1dc4da4a25a59c8e80928..a9a9f2eeceb97ef01cb87fde04cd0f9c9df10ff2 100644
(file)
--- 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 (
tru
e && OptLevel > 1)
+ if (
LoopVectoriz
e && OptLevel > 1)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)