File tree 2 files changed +359
-6
lines changed 2 files changed +359
-6
lines changed Original file line number Diff line number Diff line change @@ -6297,15 +6297,16 @@ foreach vti = AllIntegerVectors in {
6297
6297
(XLenVT timm:$policy))>;
6298
6298
6299
6299
// Match VSUB with a small immediate to vadd.vi by negating the immediate.
6300
- def : Pat<(vti.Vector (int_riscv_vsub (vti.Vector (undef) ),
6300
+ def : Pat<(vti.Vector (int_riscv_vsub (vti.Vector vti.RegClass:$merge ),
6301
6301
(vti.Vector vti.RegClass:$rs1),
6302
6302
(vti.Scalar simm5_plus1:$rs2),
6303
6303
VLOpFrag)),
6304
- (!cast<Instruction>("PseudoVADD_VI_"#vti.LMul.MX) (vti.Vector (IMPLICIT_DEF)),
6305
- vti.RegClass:$rs1,
6306
- (NegImm simm5_plus1:$rs2),
6307
- GPR:$vl,
6308
- vti.Log2SEW, TA_MA)>;
6304
+ (!cast<Instruction>("PseudoVADD_VI_"#vti.LMul.MX)
6305
+ vti.RegClass:$merge,
6306
+ vti.RegClass:$rs1,
6307
+ (NegImm simm5_plus1:$rs2),
6308
+ GPR:$vl,
6309
+ vti.Log2SEW, TU_MU)>;
6309
6310
def : Pat<(vti.Vector (int_riscv_vsub_mask (vti.Vector vti.RegClass:$merge),
6310
6311
(vti.Vector vti.RegClass:$rs1),
6311
6312
(vti.Scalar simm5_plus1:$rs2),
You can’t perform that action at this time.
0 commit comments