[RISCV] Trim RVV isel pats matchable via DAG post-process
authorFraser Cormack <fraser@codeplay.com>
Tue, 29 Mar 2022 06:43:30 +0000 (07:43 +0100)
committerFraser Cormack <fraser@codeplay.com>
Wed, 30 Mar 2022 07:56:38 +0000 (08:56 +0100)
commit75047577d6518bad5be84ec75ece8f8425148d33
tree9aabd2b83048fccd08deb6d4623a5eb864a1e5d7
parentea043ea1831d3f40b06535cab259f8f4946735b0
[RISCV] Trim RVV isel pats matchable via DAG post-process

In D122512, several masked patterns were added to support lowering of
vector-predicated float-to-int and int-to-float conversions. With the
introduction of these patterns, all of the old "unmasked" patterns are
matchable via the DAG post-process introduced in D118810, once the relevant
opcode entries are set up in the helper table.

Locally this reduces the generated isel table by 4%.

Reviewed By: arcbbb

Differential Revision: https://reviews.llvm.org/D122637
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td