@@ -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
252252bool 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
456456bool 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
482482bool 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
501501bool 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