[llvm] 5962942 - [LV][NFC] Refine comments related to reduction idioms.
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 00:12:02 PDT 2023
Author: Mel Chen
Date: 2023-07-31T00:06:45-07:00
New Revision: 59629429028bfadccdf937436c0eb722bd556378
URL: https://github.com/llvm/llvm-project/commit/59629429028bfadccdf937436c0eb722bd556378
DIFF: https://github.com/llvm/llvm-project/commit/59629429028bfadccdf937436c0eb722bd556378.diff
LOG: [LV][NFC] Refine comments related to reduction idioms.
Added:
Modified:
llvm/include/llvm/Analysis/IVDescriptors.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/IVDescriptors.h b/llvm/include/llvm/Analysis/IVDescriptors.h
index dfa1a119c0790a..49bd6a0e442d08 100644
--- a/llvm/include/llvm/Analysis/IVDescriptors.h
+++ b/llvm/include/llvm/Analysis/IVDescriptors.h
@@ -41,7 +41,7 @@ enum class RecurKind {
Xor, ///< Bitwise or logical XOR of integers.
SMin, ///< Signed integer min implemented in terms of select(cmp()).
SMax, ///< Signed integer max implemented in terms of select(cmp()).
- UMin, ///< Unisgned integer min implemented in terms of select(cmp()).
+ UMin, ///< Unsigned integer min implemented in terms of select(cmp()).
UMax, ///< Unsigned integer max implemented in terms of select(cmp()).
FAdd, ///< Sum of floats.
FMul, ///< Product of floats.
@@ -49,7 +49,7 @@ enum class RecurKind {
FMax, ///< FP max implemented in terms of select(cmp()).
FMinimum, ///< FP min with llvm.minimum semantics
FMaximum, ///< FP max with llvm.maximum semantics
- FMulAdd, ///< Fused multiply-add of floats (a * b + c).
+ FMulAdd, ///< Sum of float products with llvm.fmuladd(a * b + sum).
SelectICmp, ///< Integer select(icmp(),x,y) where one of (x,y) is loop
///< invariant
SelectFCmp ///< Integer select(fcmp(),x,y) where one of (x,y) is loop
More information about the llvm-commits
mailing list