[llvm] LV: Expand llvm.histogram intrinsic to support umax, umin, and uadd.sat operations (PR #127399)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 08:49:46 PDT 2026
================
@@ -2187,7 +2188,14 @@ class VPHistogramRecipe : public VPRecipeBase, public VPIRMetadata {
InstructionCost computeCost(ElementCount VF,
VPCostContext &Ctx) const override;
- unsigned getOpcode() const { return Opcode; }
+ /// Return the histogram intrinsic ID for this recipe's update kind.
+ Intrinsic::ID getHistogramIntrinsicID() const;
+
+ /// Return true if the increment should be negated before passing to the
+ /// histogram intrinsic (only for Sub).
+ bool mustNegateIncrement() const {
+ return UpdateKind == HistogramUpdateKind::Sub;
+ }
----------------
RonDahan101 wrote:
Done
https://github.com/llvm/llvm-project/pull/127399
More information about the llvm-commits
mailing list