[llvm] f0ac890 - [RISCV][NFC] Fix intrinsic misspelled in a comment (#98998)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 22:07:37 PDT 2024
Author: Piotr Fusik
Date: 2024-07-17T07:07:33+02:00
New Revision: f0ac8903ea1c1d664d1fae16ed00e096c713aaee
URL: https://github.com/llvm/llvm-project/commit/f0ac8903ea1c1d664d1fae16ed00e096c713aaee
DIFF: https://github.com/llvm/llvm-project/commit/f0ac8903ea1c1d664d1fae16ed00e096c713aaee.diff
LOG: [RISCV][NFC] Fix intrinsic misspelled in a comment (#98998)
Added:
Modified:
llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp
Removed:
################################################################################
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