[RISCV] Start merging demanded reasoning - starting with load/stores [nfc]
authorPhilip Reames <preames@rivosinc.com>
Thu, 16 Jun 2022 21:34:53 +0000 (14:34 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 16 Jun 2022 21:34:53 +0000 (14:34 -0700)
commit2fa2cee6a84b7fe7d4390259b71a67fd8596787f
tree76474a0cea9b6c6dc46e53e67da3befb8ad2a077
parentd764aa7fc6b9cc3fbe960019018f5f9e941eb0a6
[RISCV] Start merging demanded reasoning - starting with load/stores [nfc]

This change merges the logic for reasoning about demanded portions of the VTYPE register between the main dataflow algorithm and the backwards mutation post pass. In the process, we get to delete a bunch of now redundant code.

This should be entirely NFC. I included a slight hack (see TODO) to avoid changing behavior in the post pass while being able to use the generalized logic in the prepass. I will fix the TODO in a separate change once this lands.

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