================ @@ -16676,6 +16676,26 @@ static std::optional<unsigned> getCastOpcodeForDemotedOperand(unsigned Opcode, } } +/// Returns \p Cost with \p Repr as the context if every lane of \p VL that +/// \p Repr represents gives the same cost as its context, and \p Cost without +/// a context otherwise. +static InstructionCost getCostInAgreedContext( ---------------- alexey-bataev wrote:
Not SLP problem, but your TTI cost problem. This analysis should be a part of TTI, not SLP. If you need knowledge about actual scalars - pass these scalars to TTI and do this analysis there, not in SLP https://github.com/llvm/llvm-project/pull/241758 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
