[llvm] IVDesc: unify RecurKinds IAnyOf and FAnyOf (PR #118393)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 07:05:17 PST 2025


================
@@ -979,10 +976,10 @@ bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop,
     LLVM_DEBUG(dbgs() << "Found a UMIN reduction PHI." << *Phi << "\n");
     return true;
   }
-  if (AddReductionVar(Phi, RecurKind::IAnyOf, TheLoop, FMF, RedDes, DB, AC, DT,
+  if (AddReductionVar(Phi, RecurKind::AnyOf, TheLoop, FMF, RedDes, DB, AC, DT,
                       SE)) {
-    LLVM_DEBUG(dbgs() << "Found an integer conditional select reduction PHI."
-                      << *Phi << "\n");
+    LLVM_DEBUG(dbgs() << "Found an conditional select reduction PHI." << *Phi
----------------
david-arm wrote:

nit: `Found a conditional ...`

https://github.com/llvm/llvm-project/pull/118393


More information about the llvm-commits mailing list