[llvm] [RISCV][NFC] Fix intrinsic misspelled in a comment (PR #98998)

Piotr Fusik via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 03:57:36 PDT 2024


https://github.com/pfusik updated https://github.com/llvm/llvm-project/pull/98998

>From 5c590cf2c9a23dd28a5b47f5022d42e27d3dcb2f Mon Sep 17 00:00:00 2001
From: Piotr Fusik <p.fusik at samsung.com>
Date: Mon, 15 Jul 2024 12:29:03 +0200
Subject: [PATCH] [RISCV][NFC] Fix intrinsic misspelled in a comment

---
 llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
index 0e84eda0c9d07..0a66a38f6d5ab 100644
--- a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
+++ b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
@@ -120,14 +120,16 @@ bool RISCVCodeGenPrepare::visitAnd(BinaryOperator &BO) {
 //
 // loop:
 // %phi = phi <float> [ ..., %entry ], [ %acc, %loop ]
-// %acc = call float @llvm.vector.reduce.fadd.nxv4f32(float %phi, <vscale x 2 x float> %vec)
+// %acc = call float @llvm.vector.reduce.fadd.nxv2f32(float %phi,
+//                                                    <vscale x 2 x float> %vec)
 //
 // ->
 //
 // loop:
 // %phi = phi <vscale x 2 x float> [ ..., %entry ], [ %acc.vec, %loop ]
 // %phi.scalar = extractelement <vscale x 2 x float> %phi, i64 0
-// %acc = call float @llvm.vector.reduce.fadd.nxv4f32(float %x, <vscale x 2 x float> %vec)
+// %acc = call float @llvm.vector.reduce.fadd.nxv2f32(float %x,
+//                                                    <vscale x 2 x float> %vec)
 // %acc.vec = insertelement <vscale x 2 x float> poison, float %acc.next, i64 0
 //
 // Which eliminates the scalar -> vector -> scalar crossing during instruction



More information about the llvm-commits mailing list