From 0d7b34bfc10ba789541d736d68c24eb8d5666ce4 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Wed, 28 May 2025 21:28:01 +0100 Subject: [LoopUtils] Pass start value directly to createAnyOfReduction (NFC). Now that there is only a single AnyOf recurrence kind, simply pass the start value instead of the full recurrence descriptor, to tighten the interface. --- llvm/lib/Transforms/Utils/LoopUtils.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp') diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 2fff9521..67efafe 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -1207,12 +1207,7 @@ Value *llvm::getShuffleReduction(IRBuilderBase &Builder, Value *Src, } Value *llvm::createAnyOfReduction(IRBuilderBase &Builder, Value *Src, - const RecurrenceDescriptor &Desc, - PHINode *OrigPhi) { - assert( - RecurrenceDescriptor::isAnyOfRecurrenceKind(Desc.getRecurrenceKind()) && - "Unexpected reduction kind"); - Value *InitVal = Desc.getRecurrenceStartValue(); + Value *InitVal, PHINode *OrigPhi) { Value *NewVal = nullptr; // First use the original phi to determine the new value we're trying to -- cgit v1.1