[RISCV] Fix an inconsistency with compatible load/store handling
authorPhilip Reames <preames@rivosinc.com>
Thu, 2 Jun 2022 14:56:06 +0000 (07:56 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 2 Jun 2022 15:03:51 +0000 (08:03 -0700)
commitdcdb0bf25bc83e4ae4e7da87311dd93030e9c9ce
treee4bde30b5bd5af6332e021e70f66fd4088f4116a
parent6423a9f0ec8ba70049ea76e7bcfc9a9d1a54e826
[RISCV] Fix an inconsistency with compatible load/store handling

Once we've computed the incoming predecessor state, we should use the same compatibility check with knowledge of MI as we did in phase 2 in order to be consistent across all phases.

Differential Revision: https://reviews.llvm.org/D126574
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.mir