Skip to content

Commit 40197f7

Browse files
committed
Sort code and comments.
1 parent 1c2ca39 commit 40197f7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,9 @@ class VPInstruction : public VPRecipeWithIRFlags {
12631263
// for all lanes, depending on its uses).
12641264
PtrAdd,
12651265
// Selects elements from two vectors (second and third operand) based on a
1266-
// condition vector (first operand) and a pivot index (fourth operand).
1266+
// condition vector (first operand) and a pivot index (fourth operand). The
1267+
// lanes whose positions are greater than or equal to the pivot are taken
1268+
// from the third operand.
12671269
MergeUntilPivot,
12681270
};
12691271

llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ template <typename Class> struct bind_ty {
5454
struct specificval_ty {
5555
const VPValue *Val;
5656

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

5959
bool match(VPValue *VPV) { return VPV == Val; }
6060
};

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ Value *VPInstruction::generatePerPart(VPTransformState &State, unsigned Part) {
681681
Value *OnFalse = State.get(getOperand(2), Part);
682682
Value *Pivot = State.get(getOperand(3), VPIteration(0, 0));
683683
assert(Pivot->getType()->isIntegerTy() && "Pivot should be an integer.");
684-
685684
return Builder.CreateIntrinsic(Intrinsic::vp_merge, {OnTrue->getType()},
686685
{Cond, OnTrue, OnFalse, Pivot}, nullptr,
687686
Name);

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,6 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14911491
NewRecipe = new VPReductionEVLRecipe(*RedR, *VPEVL,
14921492
GetNewMask(RedR->getCondOp()));
14931493
} else if (auto *VPInst = dyn_cast<VPInstruction>(CurRecipe)) {
1494-
14951494
VPValue *LHS, *RHS;
14961495
if (match(VPInst, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
14971496
m_VPValue(RHS)))) {

0 commit comments

Comments
 (0)