[PATCH] D23572: [SCEV] Postpone ScalarEvolution::forgetLoop after TripCountSC is expanded when unroll runtime iteration loop

Michael Zolotukhin via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 11:36:42 PDT 2016


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

The change looks good to me, thanks!

Michael


================
Comment at: test/Analysis/ScalarEvolution/scev-expander-existing-value.ll:1-2
@@ -1,2 +1,3 @@
-; RUN: opt < %s -loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s
+; RUN: opt < %s -loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s --check-prefix=VEC
+; RUN: opt < %s -loop-unroll -unroll-runtime -unroll-count=2 -verify-scev-maps -S | FileCheck %s --check-prefix=UNROLL
 
----------------
Would it make sense to separate the test into two files maybe? Right now we run opt twice on this file but only check the output of one half each run. Ideally, we could somehow use the same routine for both vectorizer and unroller runs, but I don't know if that's possible.


Repository:
  rL LLVM

https://reviews.llvm.org/D23572





More information about the llvm-commits mailing list