Skip to content

Commit a9342f2

Browse files
authored
[RISCV] Remove VPseudoBinaryMOutNoMask. NFC (#94531)
It appears to be identical to VPseudoBinaryNoMask. The comment above it doesn't make sense since VPseudoBinaryNoMask doesn't restrict the destination register to not include V0. Looks like a copy/paste from VPseudoBinaryMOutMask.
1 parent 68a9cb7 commit a9342f2

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,24 +1438,6 @@ class VPseudoTernaryMaskPolicyRoundingMode<VReg RetClass,
14381438
let UsesVXRM = 0;
14391439
}
14401440

1441-
// Like VPseudoBinaryNoMask, but output can be V0.
1442-
class VPseudoBinaryMOutNoMask<VReg RetClass,
1443-
VReg Op1Class,
1444-
DAGOperand Op2Class,
1445-
string Constraint,
1446-
int TargetConstraintType = 1> :
1447-
Pseudo<(outs RetClass:$rd),
1448-
(ins Op1Class:$rs2, Op2Class:$rs1, AVL:$vl, ixlenimm:$sew), []>,
1449-
RISCVVPseudo {
1450-
let mayLoad = 0;
1451-
let mayStore = 0;
1452-
let hasSideEffects = 0;
1453-
let Constraints = Constraint;
1454-
let TargetOverlapConstraintType = TargetConstraintType;
1455-
let HasVLOp = 1;
1456-
let HasSEWOp = 1;
1457-
}
1458-
14591441
// Like VPseudoBinaryMask, but output can be V0.
14601442
class VPseudoBinaryMOutMask<VReg RetClass,
14611443
RegisterClass Op1Class,
@@ -2189,8 +2171,8 @@ multiclass VPseudoBinaryM<VReg RetClass,
21892171
int TargetConstraintType = 1,
21902172
bit Commutable = 0> {
21912173
let VLMul = MInfo.value, isCommutable = Commutable in {
2192-
def "_" # MInfo.MX : VPseudoBinaryMOutNoMask<RetClass, Op1Class, Op2Class,
2193-
Constraint, TargetConstraintType>;
2174+
def "_" # MInfo.MX : VPseudoBinaryNoMask<RetClass, Op1Class, Op2Class,
2175+
Constraint, TargetConstraintType>;
21942176
let ForceTailAgnostic = true in
21952177
def "_" # MInfo.MX # "_MASK" : VPseudoBinaryMOutMask<RetClass, Op1Class,
21962178
Op2Class, Constraint, TargetConstraintType>,

0 commit comments

Comments
 (0)