Re: [PATCH] D17268: [LAA] Function 'isStridedPtr' returns additional result “Loop *Lp” via function argument and add appropriate checks out of the 'isStridedPtr'.

Roman Shirokiy via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 11:58:06 PDT 2016


roman.shirokiy updated this revision to Diff 56773.
roman.shirokiy added a comment.

Updated diff according to Adam suggestions. Also added negative unit stride check since it seems to not break anything and allows to vectorize

for (int j=0; j<Z; j++) {

  for (int k=Z; k<0; k--) {
      int x = obj->v1[k] + obj->v2[j];
      obj->v3[j][k] += x;
  }


http://reviews.llvm.org/D17268

Files:
  lib/Analysis/LoopAccessAnalysis.cpp
  test/Analysis/LoopAccessAnalysis/multiple-strides-rt-memory-checks.ll
  test/Transforms/LoopVectorize/multiple-strides-vectorization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17268.56773.patch
Type: text/x-patch
Size: 5467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160510/97ed9940/attachment.bin>


More information about the llvm-commits mailing list