[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 00:40:22 PDT 2024
https://github.com/pfusik created https://github.com/llvm/llvm-project/pull/98998
None
>From 5524c9d49bbfe124d09cac7efa613a9e8f31bd07 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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
index 0e84eda0c9d07..3ed32e7e480c8 100644
--- a/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
+++ b/llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
@@ -120,14 +120,14 @@ 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