[llvm] [VPlan] Remove unused first mask op from VPBlendRecipe. (PR #87770)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 16:41:23 PDT 2024
================
@@ -1951,13 +1951,18 @@ class VPBlendRecipe : public VPSingleDefRecipe {
/// Return the number of incoming values, taking into account that a single
/// incoming value has no mask.
- unsigned getNumIncomingValues() const { return (getNumOperands() + 1) / 2; }
+ unsigned getNumIncomingValues() const { return (getNumOperands() + 2) / 2; }
----------------
ayalz wrote:
Original code that rounds-up a division by 2 should still be ok?
https://github.com/llvm/llvm-project/pull/87770
More information about the llvm-commits
mailing list