opt: Mirror vectorization presets of clang
authorArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 3 Dec 2013 16:33:06 +0000 (16:33 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 3 Dec 2013 16:33:06 +0000 (16:33 +0000)
commitdf9c9da88402e393343d5e199b0ebaa681b3a1ce
tree72865e218e86de7ee52b33b116e927421f2a6046
parentac07cd54ed48cdc160eba7625eefe09c5f484eb2
opt: Mirror vectorization presets of clang

clang enables vectorization at optimization levels > 1 and size level < 2. opt
should behave similarily.

Loop vectorization and SLP vectorization can be disabled with the flags
-disable-(loop/slp)-vectorization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196294 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/LoopVectorize/opt.ll [new file with mode: 0644]
test/Transforms/SLPVectorizer/X86/opt.ll [new file with mode: 0644]
tools/opt/opt.cpp