Skip to content

Commit bbb561f

Browse files
committed
Sort code and comments.
1 parent 9731b75 commit bbb561f

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
@@ -1275,7 +1275,9 @@ class VPInstruction : public VPRecipeWithIRFlags,
12751275
// for all lanes, depending on its uses).
12761276
PtrAdd,
12771277
// Selects elements from two vectors (second and third operand) based on a
1278-
// condition vector (first operand) and a pivot index (fourth operand).
1278+
// condition vector (first operand) and a pivot index (fourth operand). The
1279+
// lanes whose positions are greater than or equal to the pivot are taken
1280+
// from the third operand.
12791281
MergeUntilPivot,
12801282
};
12811283

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
@@ -680,7 +680,6 @@ Value *VPInstruction::generate(VPTransformState &State) {
680680
Value *OnFalse = State.get(getOperand(2), Part);
681681
Value *Pivot = State.get(getOperand(3), VPIteration(0, 0));
682682
assert(Pivot->getType()->isIntegerTy() && "Pivot should be an integer.");
683-
684683
return Builder.CreateIntrinsic(Intrinsic::vp_merge, {OnTrue->getType()},
685684
{Cond, OnTrue, OnFalse, Pivot}, nullptr,
686685
Name);

0 commit comments

Comments
 (0)