@@ -536,19 +536,19 @@ multiclass VPatWidenBinaryFPSDNode_VV_VF<SDNode op, string instruction_name> {
536536 defvar wti = vtiToWti.Wti;
537537 let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
538538 GetVTypePredicates<wti>.Predicates) in {
539- def : Pat<(op (wti.Vector (riscv_fpextend_vl_oneuse
539+ def : Pat<(op (wti.Vector (riscv_fpextend_vl_sameuser
540540 (vti.Vector vti.RegClass:$rs2),
541541 (vti.Mask true_mask), (XLenVT srcvalue))),
542- (wti.Vector (riscv_fpextend_vl_oneuse
542+ (wti.Vector (riscv_fpextend_vl_sameuser
543543 (vti.Vector vti.RegClass:$rs1),
544544 (vti.Mask true_mask), (XLenVT srcvalue)))),
545545 (!cast<Instruction>(instruction_name#"_VV_"#vti.LMul.MX)
546546 (wti.Vector (IMPLICIT_DEF)), vti.RegClass:$rs2,
547547 vti.RegClass:$rs1, vti.AVL, vti.Log2SEW, TA_MA)>;
548- def : Pat<(op (wti.Vector (riscv_fpextend_vl_oneuse
548+ def : Pat<(op (wti.Vector (riscv_fpextend_vl_sameuser
549549 (vti.Vector vti.RegClass:$rs2),
550550 (vti.Mask true_mask), (XLenVT srcvalue))),
551- (wti.Vector (riscv_fpextend_vl_oneuse
551+ (wti.Vector (riscv_fpextend_vl_sameuser
552552 (vti.Vector (SplatFPOp vti.ScalarRegClass:$rs1)),
553553 (vti.Mask true_mask), (XLenVT srcvalue)))),
554554 (!cast<Instruction>(instruction_name#"_V"#vti.ScalarSuffix#"_"#vti.LMul.MX)
@@ -571,10 +571,10 @@ multiclass VPatWidenBinaryFPSDNode_VV_VF_RM<SDNode op, string instruction_name>
571571 defvar wti = vtiToWti.Wti;
572572 let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
573573 GetVTypePredicates<wti>.Predicates) in {
574- def : Pat<(op (wti.Vector (riscv_fpextend_vl_oneuse
574+ def : Pat<(op (wti.Vector (riscv_fpextend_vl_sameuser
575575 (vti.Vector vti.RegClass:$rs2),
576576 (vti.Mask true_mask), (XLenVT srcvalue))),
577- (wti.Vector (riscv_fpextend_vl_oneuse
577+ (wti.Vector (riscv_fpextend_vl_sameuser
578578 (vti.Vector vti.RegClass:$rs1),
579579 (vti.Mask true_mask), (XLenVT srcvalue)))),
580580 (!cast<Instruction>(instruction_name#"_VV_"#vti.LMul.MX#"_E"#vti.SEW)
@@ -584,10 +584,10 @@ multiclass VPatWidenBinaryFPSDNode_VV_VF_RM<SDNode op, string instruction_name>
584584 // RISCVInsertReadWriteCSR
585585 FRM_DYN,
586586 vti.AVL, vti.Log2SEW, TA_MA)>;
587- def : Pat<(op (wti.Vector (riscv_fpextend_vl_oneuse
587+ def : Pat<(op (wti.Vector (riscv_fpextend_vl_sameuser
588588 (vti.Vector vti.RegClass:$rs2),
589589 (vti.Mask true_mask), (XLenVT srcvalue))),
590- (wti.Vector (riscv_fpextend_vl_oneuse
590+ (wti.Vector (riscv_fpextend_vl_sameuser
591591 (vti.Vector (SplatFPOp (vti.Scalar vti.ScalarRegClass:$rs1))),
592592 (vti.Mask true_mask), (XLenVT srcvalue)))),
593593 (!cast<Instruction>(instruction_name#"_V"#vti.ScalarSuffix#"_"#vti.LMul.MX#"_E"#vti.SEW)
@@ -669,10 +669,10 @@ multiclass VPatWidenFPMulAccSDNode_VV_VF_RM<string instruction_name,
669669 !if(!eq(vti.Scalar, bf16),
670670 [HasStdExtZvfbfwma],
671671 [])) in {
672- def : Pat<(fma (wti.Vector (riscv_fpextend_vl_oneuse
672+ def : Pat<(fma (wti.Vector (riscv_fpextend_vl_sameuser
673673 (vti.Vector vti.RegClass:$rs1),
674674 (vti.Mask true_mask), (XLenVT srcvalue))),
675- (wti.Vector (riscv_fpextend_vl_oneuse
675+ (wti.Vector (riscv_fpextend_vl_sameuser
676676 (vti.Vector vti.RegClass:$rs2),
677677 (vti.Mask true_mask), (XLenVT srcvalue))),
678678 (wti.Vector wti.RegClass:$rd)),
@@ -749,11 +749,11 @@ multiclass VPatWidenFPMulSacSDNode_VV_VF_RM<string instruction_name> {
749749 defvar suffix = vti.LMul.MX # "_E" # vti.SEW;
750750 let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
751751 GetVTypePredicates<wti>.Predicates) in {
752- def : Pat<(fma (wti.Vector (riscv_fpextend_vl_oneuse
752+ def : Pat<(fma (wti.Vector (riscv_fpextend_vl_sameuser
753753 (vti.Vector vti.RegClass:$rs1),
754754 (vti.Mask true_mask), (XLenVT srcvalue))),
755- (riscv_fpextend_vl_oneuse (vti.Vector vti.RegClass:$rs2),
756- (vti.Mask true_mask), (XLenVT srcvalue)),
755+ (riscv_fpextend_vl_sameuser (vti.Vector vti.RegClass:$rs2),
756+ (vti.Mask true_mask), (XLenVT srcvalue)),
757757 (fneg wti.RegClass:$rd)),
758758 (!cast<Instruction>(instruction_name#"_VV_"#suffix)
759759 wti.RegClass:$rd, vti.RegClass:$rs1, vti.RegClass:$rs2,
0 commit comments