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)
commit3c47b5cf7ab31ef8ca4bae2847d49c10cf7bd03a
tree5e4b53fbc06d4784b8972d9e346f3d43c6805afd
parente0b4b36be6e8ace66c9273bd2ff0b60d8a69abf3
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220345 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PassManagerBuilder.cpp