Skip to content

Commit 5524c9d

Browse files
committed
[RISCV][NFC] Fix intrinsic misspelled in a comment
1 parent 3a0e015 commit 5524c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ 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, <vscale x 2 x float> %vec)
124124
//
125125
// ->
126126
//
127127
// loop:
128128
// %phi = phi <vscale x 2 x float> [ ..., %entry ], [ %acc.vec, %loop ]
129129
// %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)
130+
// %acc = call float @llvm.vector.reduce.fadd.nxv2f32(float %x, <vscale x 2 x float> %vec)
131131
// %acc.vec = insertelement <vscale x 2 x float> poison, float %acc.next, i64 0
132132
//
133133
// Which eliminates the scalar -> vector -> scalar crossing during instruction

0 commit comments

Comments
 (0)