mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
582abddeee
commit
62570c2813
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user