LTO: respect command-line options that disable vectorization.
authorJF Bastien <jfb@google.com>
Tue, 21 Oct 2014 23:18:21 +0000 (23:18 +0000)
committerJF Bastien <jfb@google.com>
Tue, 21 Oct 2014 23:18:21 +0000 (23:18 +0000)
commitf42a6ea5ac541ad2b5863a0d406683f5e43a8106
treebd778adbd850717eaf6073f88483af2d78dc6820
parentef1c9ad8644d495c32a39b69763898e262b216bd
LTO: respect command-line options that disable vectorization.

Summary: Patches 202051 and 208013 added calls to LTO's PassManager which unconditionally add LoopVectorizePass and SLPVectorizerPass instead of following the logic in PassManagerBuilder::populateModulePassManager and honoring the -vectorize-loops -run-slp-after-loop-vectorization flags.

Reviewers: nadav, aschwaighofer, yijiang

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5884

llvm-svn: 220345
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp