Enable LoopVectorization by default.
authorAlina Sbirlea <asbirlea@google.com>
Thu, 25 Apr 2019 04:49:48 +0000 (04:49 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Thu, 25 Apr 2019 04:49:48 +0000 (04:49 +0000)
commit733c8c40c81de5fcc8fab264ccb6bce6d39138c5
tree26f69098390f3d89a7677f8946770b48582a7edd
parent3458ff361a1dc468cb42df6eaa99f5b09cc18443
Enable LoopVectorization by default.

Summary:
When refactoring vectorization flags, vectorization was disabled by default in the new pass manager.
This patch re-enables is for both managers, and changes the assumptions opt makes, based on the new defaults.
Comments in opt.cpp should clarify the intended use of all flags to enable/disable vectorization.

Reviewers: chandlerc, jgorbe

Subscribers: jlebar, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61091

llvm-svn: 359167
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/CodeGen/Hexagon/bug15515-shuffle.ll
llvm/test/Transforms/LoopVectorize/X86/metadata-enable.ll
llvm/test/Transforms/LoopVectorize/opt.ll
llvm/tools/opt/opt.cpp