Skip to content
Snippets Groups Projects
Commit 6ccda923 authored by Arnold Schwaighofer's avatar Arnold Schwaighofer
Browse files

LTO: Add the loop vectorizer to the LTO pipeline.

During the LTO phase LICM will move loop invariant global variables out of loops
(informed by GlobalModRef). This makes more loops countable presenting
opportunity for the loop vectorizer.

Adding the loop vectorizer improves some TSVC benchmarks and twolf/ref dataset
(5%) on x86-64.

radar://15970632

llvm-svn: 202051
parent 83708e65
No related branches found
No related tags found
No related merge requests found
......@@ -331,6 +331,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
// Nuke dead stores.
PM.add(createDeadStoreEliminationPass());
// More loops are countable try to vectorize them.
PM.add(createLoopVectorizePass(true, true));
// Cleanup and simplify the code after the scalar optimizations.
PM.add(createInstructionCombiningPass());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment