@@ -1662,10 +1662,6 @@ bool RISCVInstrInfo::isVectorAssociativeAndCommutative(const MachineInstr &Inst,
1662
1662
OPCODE_LMUL_MASK_CASE (PseudoVADD_VV):
1663
1663
OPCODE_LMUL_CASE (PseudoVMUL_VV):
1664
1664
OPCODE_LMUL_MASK_CASE (PseudoVMUL_VV):
1665
- OPCODE_LMUL_CASE (PseudoVMULH_VV):
1666
- OPCODE_LMUL_MASK_CASE (PseudoVMULH_VV):
1667
- OPCODE_LMUL_CASE (PseudoVMULHU_VV):
1668
- OPCODE_LMUL_MASK_CASE (PseudoVMULHU_VV):
1669
1665
return true ;
1670
1666
}
1671
1667
// clang-format on
@@ -1740,7 +1736,7 @@ bool RISCVInstrInfo::areRVVInstsReassociable(const MachineInstr &MI1,
1740
1736
return true ;
1741
1737
}
1742
1738
1743
- // Most of our RVV pseudo has passthru operand, so the real operands
1739
+ // Most of our RVV pseudos have passthru operand, so the real operands
1744
1740
// start from index = 2.
1745
1741
bool RISCVInstrInfo::hasReassociableVectorSibling (const MachineInstr &Inst,
1746
1742
bool &Commuted) const {
@@ -1792,7 +1788,7 @@ void RISCVInstrInfo::getReassociateOperandIndices(
1792
1788
TargetInstrInfo::getReassociateOperandIndices (Root, Pattern, OperandIndices);
1793
1789
if (isVectorAssociativeAndCommutative (Root) ||
1794
1790
isVectorAssociativeAndCommutative (Root, /* Invert=*/ true )) {
1795
- // Skip the passthrough operand, so add all indices by one.
1791
+ // Skip the passthrough operand, so increment all indices by one.
1796
1792
for (unsigned I = 0 ; I < 5 ; ++I)
1797
1793
++OperandIndices[I];
1798
1794
}
0 commit comments