[PATCH] D112467: [SLP]Do not reorder reduction nodes.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 10:07:30 PDT 2021


ABataev created this revision.
ABataev added reviewers: RKSimon, spatel, anton-afanasyev, dtemirbulatov.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.

The final reduction nodes should not be reordered, the order does not
matter for reductions. Also, it might be profitable to vectorize smaller
reduction trees, reduction cost may compensate small tree cost.

Part of D111574 <https://reviews.llvm.org/D111574>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112467

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/PhaseOrdering/X86/vector-reductions.ll
  llvm/test/Transforms/SLPVectorizer/X86/horizontal-list.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112467.382036.patch
Type: text/x-patch
Size: 15672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211025/2fc2953e/attachment.bin>


More information about the llvm-commits mailing list