[llvm] [LoopVectorize] Vectorize select-cmp reduction pattern for increasing integer induction variable (PR #67812)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 06:22:51 PDT 2024


================
@@ -900,6 +993,11 @@ bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop,
                       << *Phi << "\n");
     return true;
   }
+  if (AddReductionVar(Phi, RecurKind::IFindLastIV, TheLoop, FMF, RedDes, DB, AC,
----------------
david-arm wrote:

Do we not also need one for FFindLastIV?

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


More information about the llvm-commits mailing list