Skip to content

Commit 876d8ee

Browse files
committed
Sort code and comments.
1 parent 48047b2 commit 876d8ee

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,9 @@ class VPInstruction : public VPRecipeWithIRFlags,
12451245
// for all lanes, depending on its uses).
12461246
PtrAdd,
12471247
// Selects elements from two vectors (second and third operand) based on a
1248-
// condition vector (first operand) and a pivot index (fourth operand).
1248+
// condition vector (first operand) and a pivot index (fourth operand). The
1249+
// lanes whose positions are greater than or equal to the pivot are taken
1250+
// from the third operand.
12491251
MergeUntilPivot,
12501252
};
12511253

llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ template <typename Class> struct bind_ty {
5959
struct specificval_ty {
6060
const VPValue *Val;
6161

62-
specificval_ty(const VPValue *V) : Val(V) {} //std::move?
62+
specificval_ty(const VPValue *V) : Val(V) {}
6363

6464
bool match(VPValue *VPV) { return VPV == Val; }
6565
};

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ Value *VPInstruction::generate(VPTransformState &State) {
670670
Value *OnFalse = State.get(getOperand(2), Part);
671671
Value *Pivot = State.get(getOperand(3), VPIteration(0, 0));
672672
assert(Pivot->getType()->isIntegerTy() && "Pivot should be an integer.");
673-
674673
return Builder.CreateIntrinsic(Intrinsic::vp_merge, {OnTrue->getType()},
675674
{Cond, OnTrue, OnFalse, Pivot}, nullptr,
676675
Name);

0 commit comments

Comments
 (0)