[PATCH] D145697: [RISCV][NFC] Add tests for interleaved accesses in loop vectorizer

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 08:28:21 PST 2023


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/test/Transforms/LoopVectorize/RISCV/interleaved-accesses-zve32x.ll:32
+
+  %offset0 = shl i64 %i, 1
+  %q0 = getelementptr i64, ptr %p, i64 %offset0
----------------
OT - This example is sort of interesting as the optimal lowering for it probably uses a predicated add, not an interleave at all.  Most of your examples fall into this bucket.  Doesn't mean we shouldn't do the interleave work, just an observation.  Maybe something for the future if we see these patterns in real code?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145697



More information about the llvm-commits mailing list