Skip to content

Commit 829c47f

Browse files
committed
[InterleavedAccess] Use SmallVectorImpl references. NFC
Instead of repeating SmallVector size in multiple places.
1 parent 73e0aa5 commit 829c47f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/CodeGen/InterleavedAccessPass.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ class InterleavedAccessImpl {
101101

102102
/// Transform an interleaved load into target specific intrinsics.
103103
bool lowerInterleavedLoad(LoadInst *LI,
104-
SmallVector<Instruction *, 32> &DeadInsts);
104+
SmallVectorImpl<Instruction *> &DeadInsts);
105105

106106
/// Transform an interleaved store into target specific intrinsics.
107107
bool lowerInterleavedStore(StoreInst *SI,
108-
SmallVector<Instruction *, 32> &DeadInsts);
108+
SmallVectorImpl<Instruction *> &DeadInsts);
109109

110110
/// Transform a load and a deinterleave intrinsic into target specific
111111
/// instructions.
112112
bool lowerDeinterleaveIntrinsic(IntrinsicInst *II,
113-
SmallVector<Instruction *, 32> &DeadInsts);
113+
SmallVectorImpl<Instruction *> &DeadInsts);
114114

115115
/// Transform an interleave intrinsic and a store into target specific
116116
/// instructions.
117117
bool lowerInterleaveIntrinsic(IntrinsicInst *II,
118-
SmallVector<Instruction *, 32> &DeadInsts);
118+
SmallVectorImpl<Instruction *> &DeadInsts);
119119

120120
/// Returns true if the uses of an interleaved load by the
121121
/// extractelement instructions in \p Extracts can be replaced by uses of the
@@ -250,7 +250,7 @@ static bool isReInterleaveMask(ShuffleVectorInst *SVI, unsigned &Factor,
250250
}
251251

252252
bool InterleavedAccessImpl::lowerInterleavedLoad(
253-
LoadInst *LI, SmallVector<Instruction *, 32> &DeadInsts) {
253+
LoadInst *LI, SmallVectorImpl<Instruction *> &DeadInsts) {
254254
if (!LI->isSimple() || isa<ScalableVectorType>(LI->getType()))
255255
return false;
256256

@@ -454,7 +454,7 @@ bool InterleavedAccessImpl::tryReplaceExtracts(
454454
}
455455

456456
bool InterleavedAccessImpl::lowerInterleavedStore(
457-
StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) {
457+
StoreInst *SI, SmallVectorImpl<Instruction *> &DeadInsts) {
458458
if (!SI->isSimple())
459459
return false;
460460

@@ -480,7 +480,7 @@ bool InterleavedAccessImpl::lowerInterleavedStore(
480480
}
481481

482482
bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
483-
IntrinsicInst *DI, SmallVector<Instruction *, 32> &DeadInsts) {
483+
IntrinsicInst *DI, SmallVectorImpl<Instruction *> &DeadInsts) {
484484
LoadInst *LI = dyn_cast<LoadInst>(DI->getOperand(0));
485485

486486
if (!LI || !LI->hasOneUse() || !LI->isSimple())
@@ -499,7 +499,7 @@ bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
499499
}
500500

501501
bool InterleavedAccessImpl::lowerInterleaveIntrinsic(
502-
IntrinsicInst *II, SmallVector<Instruction *, 32> &DeadInsts) {
502+
IntrinsicInst *II, SmallVectorImpl<Instruction *> &DeadInsts) {
503503
if (!II->hasOneUse())
504504
return false;
505505

0 commit comments

Comments
 (0)