[RISCV][InsertVSETVLI] Generalize scalar move rule for when AVL is unchanged
authorPhilip Reames <preames@rivosinc.com>
Wed, 7 Dec 2022 18:24:48 +0000 (10:24 -0800)
committerPhilip Reames <listmail@philipreames.com>
Wed, 7 Dec 2022 18:28:31 +0000 (10:28 -0800)
commit14ea545a7d16dad1d26c8ba7f817a1b3d33d4132
tree15384efee5e742a68abc876aa0690c3b17de8a0f
parent91b38c6aaddefabad2a4c959ea3865e356761ed5
[RISCV][InsertVSETVLI] Generalize scalar move rule for when AVL is unchanged

By definition, the AVL of the scalar move is equally zero to the prior AVL if they are the same value.  This generalizes the existing code to the case where the scalar move has a register AVL which is unknown, but unchanged from the preceeding instruction.

This doesn't cause any interesting diffs on its own, but another patch makes this case much more common.  Split off to reduce a future diff.
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp