@@ -177,7 +177,7 @@ bool RISCVVectorPeephole::tryToReduceVL(MachineInstr &MI) const {
177177
178178 MachineOperand &SrcVL =
179179 Src->getOperand (RISCVII::getVLOpNum (Src->getDesc ()));
180- if (VL.isIdenticalTo (SrcVL) || !RISCV::isVLKnownLE (VL, SrcVL, MRI ))
180+ if (VL.isIdenticalTo (SrcVL) || !RISCV::isVLKnownLE (VL, SrcVL))
181181 continue ;
182182
183183 if (!ensureDominates (VL, *Src))
@@ -440,7 +440,7 @@ bool RISCVVectorPeephole::convertSameMaskVMergeToVMv(MachineInstr &MI) {
440440 const MachineOperand &MIVL = MI.getOperand (RISCVII::getVLOpNum (MI.getDesc ()));
441441 const MachineOperand &TrueVL =
442442 True->getOperand (RISCVII::getVLOpNum (True->getDesc ()));
443- if (!RISCV::isVLKnownLE (MIVL, TrueVL, MRI ))
443+ if (!RISCV::isVLKnownLE (MIVL, TrueVL))
444444 return false ;
445445
446446 // True's passthru needs to be equivalent to False
@@ -611,7 +611,7 @@ bool RISCVVectorPeephole::foldUndefPassthruVMV_V_V(MachineInstr &MI) {
611611 MachineOperand &SrcPolicy =
612612 Src->getOperand (RISCVII::getVecPolicyOpNum (Src->getDesc ()));
613613
614- if (RISCV::isVLKnownLE (MIVL, SrcVL, MRI ))
614+ if (RISCV::isVLKnownLE (MIVL, SrcVL))
615615 SrcPolicy.setImm (SrcPolicy.getImm () | RISCVVType::TAIL_AGNOSTIC);
616616 }
617617
@@ -663,7 +663,7 @@ bool RISCVVectorPeephole::foldVMV_V_V(MachineInstr &MI) {
663663 // so we don't need to handle a smaller source VL here. However, the
664664 // user's VL may be larger
665665 MachineOperand &SrcVL = Src->getOperand (RISCVII::getVLOpNum (Src->getDesc ()));
666- if (!RISCV::isVLKnownLE (SrcVL, MI.getOperand (3 ), MRI ))
666+ if (!RISCV::isVLKnownLE (SrcVL, MI.getOperand (3 )))
667667 return false ;
668668
669669 // If the new passthru doesn't dominate Src, try to move Src so it does.
@@ -684,7 +684,7 @@ bool RISCVVectorPeephole::foldVMV_V_V(MachineInstr &MI) {
684684 // If MI was tail agnostic and the VL didn't increase, preserve it.
685685 int64_t Policy = RISCVVType::TAIL_UNDISTURBED_MASK_UNDISTURBED;
686686 if ((MI.getOperand (5 ).getImm () & RISCVVType::TAIL_AGNOSTIC) &&
687- RISCV::isVLKnownLE (MI.getOperand (3 ), SrcVL, MRI ))
687+ RISCV::isVLKnownLE (MI.getOperand (3 ), SrcVL))
688688 Policy |= RISCVVType::TAIL_AGNOSTIC;
689689 Src->getOperand (RISCVII::getVecPolicyOpNum (Src->getDesc ())).setImm (Policy);
690690 }
@@ -775,9 +775,9 @@ bool RISCVVectorPeephole::foldVMergeToMask(MachineInstr &MI) const {
775775 True.getOperand (RISCVII::getVLOpNum (True.getDesc ()));
776776
777777 MachineOperand MinVL = MachineOperand::CreateImm (0 );
778- if (RISCV::isVLKnownLE (TrueVL, VMergeVL, MRI ))
778+ if (RISCV::isVLKnownLE (TrueVL, VMergeVL))
779779 MinVL = TrueVL;
780- else if (RISCV::isVLKnownLE (VMergeVL, TrueVL, MRI ))
780+ else if (RISCV::isVLKnownLE (VMergeVL, TrueVL))
781781 MinVL = VMergeVL;
782782 else
783783 return false ;
@@ -797,7 +797,7 @@ bool RISCVVectorPeephole::foldVMergeToMask(MachineInstr &MI) const {
797797 // to the tail. In that case we always need to use tail undisturbed to
798798 // preserve them.
799799 uint64_t Policy = RISCVVType::TAIL_UNDISTURBED_MASK_UNDISTURBED;
800- if (!PassthruReg && RISCV::isVLKnownLE (VMergeVL, MinVL, MRI ))
800+ if (!PassthruReg && RISCV::isVLKnownLE (VMergeVL, MinVL))
801801 Policy |= RISCVVType::TAIL_AGNOSTIC;
802802
803803 assert (RISCVII::hasVecPolicyOp (True.getDesc ().TSFlags ) &&
0 commit comments