Skip to content

Commit 1a7a4f9

Browse files
committed
Update after rebase
1 parent 18dd94d commit 1a7a4f9

File tree

4 files changed

+3
-23
lines changed

4 files changed

+3
-23
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8443,9 +8443,6 @@ SDValue RISCVTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
84438443
SDValue Res = DAG.getNode(RISCVISD::VMV_X_S, DL, XLenVT, Op.getOperand(1));
84448444
return DAG.getNode(ISD::TRUNCATE, DL, Op.getValueType(), Res);
84458445
}
8446-
case Intrinsic::riscv_vfmv_s_f:
8447-
return DAG.getNode(RISCVISD::VFMV_S_F_VL, DL, Op.getSimpleValueType(),
8448-
Op.getOperand(1), Op.getOperand(2), Op.getOperand(3));
84498446
case Intrinsic::riscv_vfmv_f_s:
84508447
return DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, Op.getValueType(),
84518448
Op.getOperand(1), DAG.getConstant(0, DL, XLenVT));

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def VLOpFrag : PatFrag<(ops), (XLenVT (VLOp (XLenVT AVL:$vl)))>;
241241
// This must be kept in sync with RISCV::VLMaxSentinel.
242242
def VLMax : OutPatFrag<(ops), (XLenVT -1)>;
243243

244+
def SelectFPImm : ComplexPattern<fAny, 1, "selectFPImm", [], [], 1>;
245+
244246
// List of EEW.
245247
defvar EEWList = [8, 16, 32, 64];
246248

@@ -7407,22 +7409,6 @@ foreach vti = NoGroupIntegerVectors in {
74077409
// vmv.s.x is handled with a custom node in RISCVInstrInfoVVLPatterns.td
74087410
}
74097411

7410-
//===----------------------------------------------------------------------===//
7411-
// 16.2. Floating-Point Scalar Move Instructions
7412-
//===----------------------------------------------------------------------===//
7413-
7414-
foreach fvti = AllFloatVectors in {
7415-
let Predicates = GetVTypePredicates<fvti>.Predicates in {
7416-
def : Pat<(fvti.Vector (int_riscv_vfmv_s_f (fvti.Vector fvti.RegClass:$rs1),
7417-
(fvti.Scalar fvti.ScalarRegClass:$rs2), VLOpFrag)),
7418-
(!cast<Instruction>("PseudoVFMV_S_"#fvti.ScalarSuffix#"_" #
7419-
fvti.LMul.MX)
7420-
(fvti.Vector $rs1),
7421-
(fvti.Scalar fvti.ScalarRegClass:$rs2),
7422-
GPR:$vl, fvti.Log2SEW)>;
7423-
}
7424-
}
7425-
74267412
//===----------------------------------------------------------------------===//
74277413
// 16.3. Vector Slide Instructions
74287414
//===----------------------------------------------------------------------===//

llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,6 @@ def SplatPat_simm5_plus1_nonzero
587587
def Low8BitsSplatPat
588588
: ComplexPattern<vAny, 1, "selectLow8BitsVSplat", [], [], 2>;
589589

590-
def SelectFPImm : ComplexPattern<fAny, 1, "selectFPImm", [], [], 1>;
591-
592590
// Ignore the vl operand on vmv_v_f, and vmv_s_f.
593591
def SplatFPOp : PatFrags<(ops node:$op),
594592
[(riscv_vfmv_v_f_vl undef, node:$op, srcvalue),

llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,8 @@ define void @add_v16i64(ptr %x, ptr %y) vscale_range(2,2) {
630630
define <vscale x 2 x float> @fp_reduction_vfmv_s_f(float %0, <vscale x 8 x float> %1, i64 %2) {
631631
; CHECK-LABEL: fp_reduction_vfmv_s_f:
632632
; CHECK: # %bb.0:
633-
; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
634-
; CHECK-NEXT: vfmv.s.f v12, fa0
635633
; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
634+
; CHECK-NEXT: vfmv.s.f v12, fa0
636635
; CHECK-NEXT: vfredusum.vs v8, v8, v12
637636
; CHECK-NEXT: ret
638637
%4 = tail call <vscale x 8 x float> @llvm.riscv.vfmv.s.f.nxv8f32.i64(<vscale x 8 x float> poison, float %0, i64 %2)

0 commit comments

Comments
 (0)