Skip to content

Commit f218cd2

Browse files
committed
[IA] Remove unused argument. NFC
1 parent 5d136f9 commit f218cd2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/lib/CodeGen/InterleavedAccessPass.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,7 @@ getVectorDeinterleaveFactor(IntrinsicInst *II,
632632

633633
// Return the corresponded deinterleaved mask, or nullptr if there is no valid
634634
// mask.
635-
static Value *getMask(Value *WideMask, unsigned Factor,
636-
VectorType *LeafValueTy) {
635+
static Value *getMask(Value *WideMask, unsigned Factor) {
637636
using namespace llvm::PatternMatch;
638637
if (auto *IMI = dyn_cast<IntrinsicInst>(WideMask)) {
639638
SmallVector<Value *, 8> Operands;
@@ -676,8 +675,7 @@ bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
676675
return false;
677676
// Check mask operand. Handle both all-true and interleaved mask.
678677
Value *WideMask = VPLoad->getOperand(1);
679-
Value *Mask = getMask(WideMask, Factor,
680-
cast<VectorType>(DeinterleaveValues[0]->getType()));
678+
Value *Mask = getMask(WideMask, Factor);
681679
if (!Mask)
682680
return false;
683681

@@ -729,8 +727,7 @@ bool InterleavedAccessImpl::lowerInterleaveIntrinsic(
729727
return false;
730728

731729
Value *WideMask = VPStore->getOperand(2);
732-
Value *Mask = getMask(WideMask, Factor,
733-
cast<VectorType>(InterleaveValues[0]->getType()));
730+
Value *Mask = getMask(WideMask, Factor);
734731
if (!Mask)
735732
return false;
736733

0 commit comments

Comments
 (0)