Skip to content

Commit 95e9f9b

Browse files
committed
Sort code and comments.
1 parent f894030 commit 95e9f9b

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
@@ -1267,7 +1267,9 @@ class VPInstruction : public VPRecipeWithIRFlags {
12671267
// for all lanes, depending on its uses).
12681268
PtrAdd,
12691269
// Selects elements from two vectors (second and third operand) based on a
1270-
// condition vector (first operand) and a pivot index (fourth operand).
1270+
// condition vector (first operand) and a pivot index (fourth operand). The
1271+
// lanes whose positions are greater than or equal to the pivot are taken
1272+
// from the third operand.
12711273
MergeUntilPivot,
12721274
};
12731275

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
@@ -676,7 +676,6 @@ Value *VPInstruction::generatePerPart(VPTransformState &State, unsigned Part) {
676676
Value *OnFalse = State.get(getOperand(2), Part);
677677
Value *Pivot = State.get(getOperand(3), VPIteration(0, 0));
678678
assert(Pivot->getType()->isIntegerTy() && "Pivot should be an integer.");
679-
680679
return Builder.CreateIntrinsic(Intrinsic::vp_merge, {OnTrue->getType()},
681680
{Cond, OnTrue, OnFalse, Pivot}, nullptr,
682681
Name);

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,6 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
13891389
NewRecipe = new VPReductionEVLRecipe(*RedR, *VPEVL,
13901390
GetNewMask(RedR->getCondOp()));
13911391
} else if (auto *VPInst = dyn_cast<VPInstruction>(CurRecipe)) {
1392-
13931392
VPValue *LHS, *RHS;
13941393
if (match(VPInst, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
13951394
m_VPValue(RHS)))) {

0 commit comments

Comments
 (0)