[PATCH] D158896: [RISCV] Improve splatPartsI64WithVL for fixed vector constants where Hi Lo are same and the VL is constant.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 14:48:26 PDT 2023


reames added a comment.

LGTM

A few ideas for possible followups:

- constants up to 11 bits, this is a single LI for the doubled form
- preferring i8 splats if the 32 bit value is a 4 byte splat.  This uses a smaller constant materialization sequence.
- use vmseq for any single bit 64 bit constant
- use all the vid tricks (and all other buildvector tricks, can we share code?)
- for constants, use constant pool, not stack


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158896



More information about the llvm-commits mailing list