[PATCH] D150706: [LAA] Update MaxSafeDepDistBytes when non-unit stride

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 10:20:25 PDT 2023


fhahn added a comment.

Does this fix a miscompile in loop-vectorize (or elsewhere)?

AFAICT `MaxSafeDepDistBytes` is simply the distance in bytes between dependent accesses and it's not directly the number of elements/iterations that can be performed in parallel without conflict. Loop-vectorize uses `getMaxSafeVectorWidthInBits` to limit the max VF which is the number of elements that can be processed in parallel.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150706



More information about the llvm-commits mailing list