================ @@ -30,6 +35,17 @@ Instruction *getNonPhiOperand(Instruction *I, PHINode *Phi); /// vectorization. bool isReductionCandidate(Instruction *I); +/// \returns the number of elements of the homogeneous aggregate built by +/// \p InsertInst (insertelement or insertvalue), or std::nullopt if it is not +/// a homogeneous aggregate. +std::optional<unsigned> getAggregateSize(Instruction *InsertInst); ---------------- alexey-bataev wrote:
Why it happen to become a member of reduction helpers? https://github.com/llvm/llvm-project/pull/222613 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
