Skip to content

Commit f43ba0e

Browse files
pfusikyuxuanchen1997
authored andcommitted
[RISCV][NFC] Fix intrinsic misspelled in a comment (#98998)
1 parent d37f5f5 commit f43ba0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,16 @@ bool RISCVCodeGenPrepare::visitAnd(BinaryOperator &BO) {
120120
//
121121
// loop:
122122
// %phi = phi <float> [ ..., %entry ], [ %acc, %loop ]
123-
// %acc = call float @llvm.vector.reduce.fadd.nxv4f32(float %phi, <vscale x 2 x float> %vec)
123+
// %acc = call float @llvm.vector.reduce.fadd.nxv2f32(float %phi,
124+
// <vscale x 2 x float> %vec)
124125
//
125126
// ->
126127
//
127128
// loop:
128129
// %phi = phi <vscale x 2 x float> [ ..., %entry ], [ %acc.vec, %loop ]
129130
// %phi.scalar = extractelement <vscale x 2 x float> %phi, i64 0
130-
// %acc = call float @llvm.vector.reduce.fadd.nxv4f32(float %x, <vscale x 2 x float> %vec)
131+
// %acc = call float @llvm.vector.reduce.fadd.nxv2f32(float %x,
132+
// <vscale x 2 x float> %vec)
131133
// %acc.vec = insertelement <vscale x 2 x float> poison, float %acc.next, i64 0
132134
//
133135
// Which eliminates the scalar -> vector -> scalar crossing during instruction

0 commit comments

Comments
 (0)