[PATCH] D126772: [LoopVectorize] Add support for invariant stores of ordered reductions

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 08:48:23 PDT 2022


fhahn added a comment.

@igor.kirillov do you remember why  this was restriction was added originally?



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp:1020
   // have the isOrdered flag set, which indicates that we can move the
   // reduction operations in-loop, and do not have intermediate store.
   return (all_of(getReductionVars(), [&](auto &Reduction) -> bool {
----------------
this comment needs updating


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126772



More information about the llvm-commits mailing list