[PATCH] D154157: [LV] Cost model for out-of-loop reductions

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 10:05:47 PDT 2023


anna updated this revision to Diff 552416.
anna added a comment.

Rewrote the patch to extend existing logic for runtime checks calculation. 
This now supports all kinds of out of loop reductions. Since we compute an upper-bound on `MinProfitableTripCount`, this maybe a more conservative estimate.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154157

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/X86/reduction-small-trip-count.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154157.552416.patch
Type: text/x-patch
Size: 15359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/68311283/attachment.bin>


More information about the llvm-commits mailing list