diff options
author | Florian Hahn <flo@fhahn.com> | 2025-05-28 21:28:01 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-05-28 21:28:02 +0100 |
commit | 0d7b34bfc10ba789541d736d68c24eb8d5666ce4 (patch) | |
tree | 8d338dd00d39c418bf1a08bfec3617ac763b4133 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 6efd24cc88f700d69b5e0b198cee5eb2c8b1d37e (diff) | |
download | llvm-0d7b34bfc10ba789541d736d68c24eb8d5666ce4.zip llvm-0d7b34bfc10ba789541d736d68c24eb8d5666ce4.tar.gz llvm-0d7b34bfc10ba789541d736d68c24eb8d5666ce4.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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 |