Skip to content

Commit d07214b

Browse files
committed
Sort code and comments.
1 parent 9030bf1 commit d07214b

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
@@ -1246,7 +1246,9 @@ class VPInstruction : public VPRecipeWithIRFlags,
12461246
// for all lanes, depending on its uses).
12471247
PtrAdd,
12481248
// Selects elements from two vectors (second and third operand) based on a
1249-
// condition vector (first operand) and a pivot index (fourth operand).
1249+
// condition vector (first operand) and a pivot index (fourth operand). The
1250+
// lanes whose positions are greater than or equal to the pivot are taken
1251+
// from the third operand.
12501252
MergeUntilPivot,
12511253
};
12521254

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
@@ -669,7 +669,6 @@ Value *VPInstruction::generate(VPTransformState &State) {
669669
Value *OnFalse = State.get(getOperand(2), Part);
670670
Value *Pivot = State.get(getOperand(3), VPIteration(0, 0));
671671
assert(Pivot->getType()->isIntegerTy() && "Pivot should be an integer.");
672-
673672
return Builder.CreateIntrinsic(Intrinsic::vp_merge, {OnTrue->getType()},
674673
{Cond, OnTrue, OnFalse, Pivot}, nullptr,
675674
Name);

0 commit comments

Comments
 (0)