Skip to content

Commit

Permalink
SLPVectorizer: Make it a function pass and add code for hoisting the …
Browse files Browse the repository at this point in the history
…vector-gather sequence out of loops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179562 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nadavrot committed Apr 15, 2013
1 parent c9363ef commit e9a4411
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 163 deletions.
6 changes: 2 additions & 4 deletions lib/Transforms/IPO/PassManagerBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,8 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {

addExtensionsToPM(EP_ScalarOptimizerLate, MPM);

if (SLPVectorize) {
MPM.add(createSLPVectorizerPass());
MPM.add(createEarlyCSEPass());
}
if (SLPVectorize)
MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.

if (BBVectorize) {
MPM.add(createBBVectorizePass());
Expand Down
Loading

0 comments on commit e9a4411

Please sign in to comment.