summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-08-13 15:51:25 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-08-13 15:51:25 +0000
commitb6171c529670e5c240aaf9c08f5f1b6dba9d16fc (patch)
tree5e44a6a9629dd18a730ca162c60dba22977cc9ab /tools/opt/opt.cpp
parent4c857225ecba199bc74b350bbb1a2ded125ebfb7 (diff)
downloadllvm-b6171c529670e5c240aaf9c08f5f1b6dba9d16fc.tar.gz
llvm-b6171c529670e5c240aaf9c08f5f1b6dba9d16fc.tar.bz2
llvm-b6171c529670e5c240aaf9c08f5f1b6dba9d16fc.tar.xz
Remove logic that decides whether to vectorize or not depending on O-levels
I have moved this logic into clang and opt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 37637ca628..ca82061786 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -451,6 +451,8 @@ static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
Builder.populateFunctionPassManager(FPM);
Builder.populateModulePassManager(MPM);
+
+ Builder.LoopVectorize = OptLevel > 1 && SizeLevel < 2;
}
static void AddStandardCompilePasses(PassManagerBase &PM) {