[llvm] [SLP]Model or-reduction of masked shifted lanes as a bitfield pack (PR #219731)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 11:09:20 PDT 2026
================
@@ -411,6 +414,44 @@ void collectNarrowedLeaves(Value *V, unsigned RdxOpcode, unsigned WideBW,
TargetTransformInfo::TargetCostKind getSLPCostKind(const Function *F);
+/// Returns a saturating unsigned upper bound of the scalar V. The numeric
+/// bound keeps precision on arithmetic carries, where bit-wise analysis
+/// loses it.
+APInt getScalarMaxValue(const Value *V, unsigned Depth = 0);
+
+/// Description of a bitfield packing of vector lanes into a scalar value:
+/// every lane contributes a disjoint contiguous byte field of the result.
+struct BitPackInfo {
+ static constexpr unsigned NoLane = ~0u;
----------------
alexey-bataev wrote:
Fixed, thanks
https://github.com/llvm/llvm-project/pull/219731
More information about the llvm-commits
mailing list