Skip to content

Commit

Permalink
Revert "Revert "enable the SLP Vectorizer optimization pass by defaul…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels authored and Keno committed Aug 1, 2018
1 parent fe9a075 commit 0ef8826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,9 @@ Compiler/Runtime improvements
* Inference now propagates constants inter-procedurally, and can compute
various constants expressions at compile-time ([#24362]).

* The LLVM SLP Vectorizer optimization pass is now enabled at the default
optimization level.

Deprecated or removed
---------------------

Expand Down
9 changes: 2 additions & 7 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,9 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level, bool dump
PM->add(createLoopIdiomPass());
PM->add(createLoopDeletionPass()); // Delete dead loops
PM->add(createJumpThreadingPass()); // Thread jumps

if (opt_level >= 3) {
PM->add(createSLPVectorizerPass()); // Vectorize straight-line code
}

PM->add(createSLPVectorizerPass()); // Vectorize straight-line code
PM->add(createAggressiveDCEPass()); // Delete dead instructions
if (opt_level >= 3)
PM->add(createInstructionCombiningPass()); // Clean up after SLP loop vectorizer
PM->add(createInstructionCombiningPass()); // Clean up after SLP loop vectorizer
PM->add(createLoopVectorizePass()); // Vectorize loops
PM->add(createInstructionCombiningPass()); // Clean up after loop vectorizer
// LowerPTLS removes an indirect call. As a result, it is likely to trigger
Expand Down

0 comments on commit 0ef8826

Please sign in to comment.