[RISCV][InsertVSETVLI] Rework code structure to make reasoning about undefined lanes...
authorPhilip Reames <preames@rivosinc.com>
Wed, 14 Jun 2023 16:47:24 +0000 (09:47 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 14 Jun 2023 16:48:31 +0000 (09:48 -0700)
commit807adcf4b9cca5586fd1fb669811768528d9dd1d
treebefbc7d4541b0708a262e339863f7f1dae802ebd
parent552ee85eb84bc2b44124c486f18e1af5ac749fef
[RISCV][InsertVSETVLI] Rework code structure to make reasoning about undefined lanes explicit [NFC]

We already have several places in this code which reason about whether the inactive lanes are defined, and are about to add one more in D151653. Let's go ahead and common the code so that we don't have the same concept repeating in multiply places.

Differential Revision: https://reviews.llvm.org/D152844
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp