[PATCH] D132359: [LegalizeTypes] Support widen result for VECTOR_REVERSE

WangLian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 02:23:58 PDT 2022


Jimerlife created this revision.
Jimerlife added reviewers: craig.topper, sdesmalen, david-arm, frasercrmck, benshi001.
Jimerlife added a project: LLVM.
Herald added subscribers: StephenFan, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
Jimerlife requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, jacquesguan, MaskRay.

Support widen result for VECTOR_REVERSE.
After widen and reverse, extract real value and fill undef value in the tail to build a new vector.

I am not sure if I should add widen vector_reverse result for fixed-vectors, because when I use `llvm.experimental.vector.reverse` for fixed-vectors it will become to vector_shuffle ISD node.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132359

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/test/CodeGen/RISCV/rvv/named-vector-shuffle-reverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132359.454420.patch
Type: text/x-patch
Size: 7213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220822/6bbc56dd/attachment-0001.bin>


More information about the llvm-commits mailing list