[PATCH] D110235: [LoopVectorize] Support reductions that store intermediary result

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 19 05:58:42 PDT 2021


david-arm added a comment.

Hi @igor.kirillov, is it also possible to get this working for ordered reductions, i.e.

  float sum = 0;
  for(i=0..N) {
    sum += src[i];
    dst[42] = sum;
  }

when building with -O3? I think it might mean updating checkOrderedReductions to look through the store. If it looks too difficult to do as part of this patch we can always follow-up with a patch later.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110235/new/

https://reviews.llvm.org/D110235



More information about the llvm-commits mailing list