[PATCH] D147976: [LSV] Improve chain splitting in some corner cases.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 16:02:38 PDT 2023


tra created this revision.
Herald added subscribers: mattd, gchakrabarti, asavonic, bixia, hiraditya.
Herald added a project: All.
tra published this revision for review.
tra added reviewers: arsenm, jlebar.
Herald added subscribers: llvm-commits, pcwang-thead, wdng, jholewinski.
Herald added a project: LLVM.

Currently we happen to split a chain of 12xi8 accesses into 6xi8 + 6xi8, which
produces rather suboptimal code.

This change attempts to split-off non-multiples of 4bytes at the end and if that
does not work, splits on the smaller power-of-2 boundary.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147976

Files:
  llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  llvm/test/Transforms/LoadStoreVectorizer/NVPTX/vectorize_i8.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147976.512279.patch
Type: text/x-patch
Size: 10433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230410/c5ce7e1e/attachment.bin>


More information about the llvm-commits mailing list