[llvm] [RISCV] Improve cleanup phase of RISCV Insert VSETVLI pass (PR #67144)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 24 11:27:41 PDT 2023
================
@@ -1475,36 +1438,74 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
if (!isVectorConfigInstr(MI)) {
doUnion(Used, getDemanded(MI, MRI));
+ // We can't handle the case when the source AVL
+ // register of *NextMI is defined after MI
+ if (NextMI && NextMI->getOperand(1).isReg() && MI.getOperand(0).isReg() &&
----------------
topperc wrote:
Or it might not even be a def. It could be a store instruction that uses the same register?
https://github.com/llvm/llvm-project/pull/67144
More information about the llvm-commits
mailing list