[RISCV] Untangle instruction properties from VSETVLIInfo [NFC]
authorPhilip Reames <preames@rivosinc.com>
Wed, 8 Jun 2022 15:08:03 +0000 (08:08 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 8 Jun 2022 15:09:59 +0000 (08:09 -0700)
commit1ea99328b45698bee92ccabe34f686ad3c024888
tree61759fab0407424fc469921ad6e0cd61e4e73745
parent4f8668d9f73a0dc234ebf9938bcf24061991e9ae
[RISCV] Untangle instruction properties from VSETVLIInfo [NFC]

The abstract state used in the data flow should not know anything about the instructions which produced the abstract states. Instead, when comparing two states, we can simply use information about the machine instr at that time.

In the old design, basically any use of the instruction flags on the current (as opposed to a "Require" - aka upcoming state) would be a bug. We don't seem to actually have any such bugs, but we can make this much more obvious with code structure.

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