diff options
author | Philip Reames <preames@rivosinc.com> | 2025-04-10 19:45:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-10 19:45:04 -0700 |
commit | f40001372b54ce68507f36b600f798e832478e16 (patch) | |
tree | 5e559c174eaafda9134d5dfb3cf9850872819de5 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | b03aa291b8ddc962ff82859b5317d8ea8a7a3e87 (diff) | |
download | llvm-f40001372b54ce68507f36b600f798e832478e16.zip llvm-f40001372b54ce68507f36b600f798e832478e16.tar.gz llvm-f40001372b54ce68507f36b600f798e832478e16.tar.bz2 |
[RISCV] Lower a shuffle which is nearly identity except one replicated element (#135292)
This can be done with a vrgather.vi/vx, and (possibly) a register move.
The alternative is to do a vrgather.vv with a full width index vector.
We'd already caught the two operands forms of this shuffle; this patch
specifically handles the single operand form.
Unfortunately only in abstract, it would be nice if we canonicalized
shuffles in some way wouldn't it?
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions