[PATCH] Allow to model non-affine control flow in a SCoP.

Johannes Doerfert doerfert at cs.uni-saarland.de
Thu Feb 19 15:17:12 PST 2015


================
Comment at: test/ScopInfo/non-affine-loop-condition.ll:6
@@ +5,3 @@
+;        while (C[i])
+;          A[i]++;
+;      }
----------------
sebpop wrote:
> if C[0] is non null, then the inner while loop is infinite unless there is some aliasing A == C.
> I think in this particular case we can say something about the number of elements of A and C we are accessing, because we can compute the access function A[i] and C[i].
> 
> Would we say that all the elements of arrays A and C are accessed if we cannot compute their access functions? 
This was a bad example I will change the body to C[i]-- to make it more realistic.

http://reviews.llvm.org/D7764

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list