[PATCH] D22468: [PM] Convert Loop Strength Reduce pass to new PM

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 14:35:07 PDT 2016


silvas accepted this revision.
silvas added a comment.
This revision is now accepted and ready to land.

LGTM with a nit.


================
Comment at: test/Transforms/LoopStrengthReduce/ivchain.ll:2
@@ -1,2 +1,3 @@
 ; RUN: opt < %s -loop-reduce -S | FileCheck %s
+; RUN: opt -passes='function(require<scalar-evolution>,require<targetir>),loop(require<ivusers>,strength-reduce)' < %s -S | FileCheck %s
 ;
----------------
You should not need `require<ivusers>` here.

Also, you don't need the `function(...)` around `require<scalar-evolution>,require<targetir>`.

I.e. this can be just `require<scalar-evolution>,require<targetir>,loop(strength-reduce)`.


https://reviews.llvm.org/D22468





More information about the llvm-commits mailing list