[PATCH] D100107: [AArch64][SVE] Combine add and index_vector

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 03:07:35 PDT 2021


sdesmalen added a comment.

Thanks, that looks quite neat. Can you also add a few tests when there is >1 use of the stepvector (e.g. using the stepvector in two adds), so we can test the fold indeed doesn't happen?
One test for each of the instructions should be sufficient.



================
Comment at: llvm/test/CodeGen/AArch64/sve-stepvector.ll:147
+
+define <vscale x 8 x i8> @add_stepvector_nxv8i8_3() {
+; CHECK-LABEL: add_stepvector_nxv8i8_3:
----------------
nit: add_stepvector_nxv8i8_2_commutative ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100107



More information about the llvm-commits mailing list