[llvm] [NFC] Fix outdated RecurKind comments (PR #144014)

Ivan R. Ivanov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 21:45:18 PDT 2025


https://github.com/ivanradanov created https://github.com/llvm/llvm-project/pull/144014

None

>From effa86f70eba6ec5ab3ac1543ca41993bf55c530 Mon Sep 17 00:00:00 2001
From: Ivan Radanov Ivanov <ivanov.i.aa at m.titech.ac.jp>
Date: Fri, 13 Jun 2025 13:44:37 +0900
Subject: [PATCH] [NFC] Update outdated RecurKind comments

---
 llvm/include/llvm/Analysis/IVDescriptors.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/llvm/include/llvm/Analysis/IVDescriptors.h b/llvm/include/llvm/Analysis/IVDescriptors.h
index 3b627a5140854..099b19c9cec94 100644
--- a/llvm/include/llvm/Analysis/IVDescriptors.h
+++ b/llvm/include/llvm/Analysis/IVDescriptors.h
@@ -53,13 +53,10 @@ enum class RecurKind {
   FMaximumNum, ///< FP max with llvm.maximumnum semantics
   FMulAdd,  ///< Sum of float products with llvm.fmuladd(a * b + sum).
   AnyOf,    ///< AnyOf reduction with select(cmp(),x,y) where one of (x,y) is
-            ///< loop invariant, and both x and y are integer type.
+            ///< loop invariant.
   FindLastIV, ///< FindLast reduction with select(cmp(),x,y) where one of
-              ///< (x,y) is increasing loop induction, and both x and y are
-              ///< integer type.
+              ///< (x,y) is increasing loop induction.
   // clang-format on
-  // TODO: Any_of and FindLast reduction need not be restricted to integer type
-  // only.
 };
 
 /// The RecurrenceDescriptor is used to identify recurrences variables in a



More information about the llvm-commits mailing list