Skip to content

Commit 306a835

Browse files
committed
nfc, set HasMask to private
1 parent c569b12 commit 306a835

File tree

1 file changed

+6
-6
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+6
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,15 +2445,15 @@ class LLVM_ABI_FOR_TEST VPInterleaveBase : public VPRecipeBase,
24452445
public VPIRMetadata {
24462446
const InterleaveGroup<Instruction> *IG;
24472447

2448+
/// Indicates if the interleave group is in a conditional block and requires a
2449+
/// mask.
2450+
bool HasMask = false;
2451+
24482452
/// Indicates if gaps between members of the group need to be masked out or if
24492453
/// unusued gaps can be loaded speculatively.
24502454
bool NeedsMaskForGaps = false;
24512455

24522456
protected:
2453-
/// Indicates if the interleave group is in a conditional block and requires a
2454-
/// mask.
2455-
bool HasMask = false;
2456-
24572457
VPInterleaveBase(const unsigned char SC,
24582458
const InterleaveGroup<Instruction> *IG,
24592459
ArrayRef<VPValue *> Operands,
@@ -2573,7 +2573,7 @@ class LLVM_ABI_FOR_TEST VPInterleaveRecipe final : public VPInterleaveBase {
25732573
}
25742574

25752575
unsigned getNumStoreOperands() const override {
2576-
return getNumOperands() - (HasMask ? 2 : 1);
2576+
return getNumOperands() - (getMask() ? 2 : 1);
25772577
}
25782578
};
25792579

@@ -2622,7 +2622,7 @@ class LLVM_ABI_FOR_TEST VPInterleaveEVLRecipe final : public VPInterleaveBase {
26222622
}
26232623

26242624
unsigned getNumStoreOperands() const override {
2625-
return getNumOperands() - (HasMask ? 3 : 2);
2625+
return getNumOperands() - (getMask() ? 3 : 2);
26262626
}
26272627
};
26282628

0 commit comments

Comments
 (0)