llvm.org GIT mirror llvm / 3d1a975
No need to run LICM after loop vectorization because we dont generate invariant code any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168928 91177308-0d34-0410-b5e6-96231b3b80d8 Nadav Rotem 6 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
189189 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
190190 MPM.add(createLoopDeletionPass()); // Delete dead loops
191191
192 if (LoopVectorize) {
192 if (LoopVectorize)
193193 MPM.add(createLoopVectorizePass());
194 MPM.add(createLICMPass());
195 }
196194
197195 if (!DisableUnrollLoops)
198196 MPM.add(createLoopUnrollPass()); // Unroll small loops