@@ -101,21 +101,21 @@ class InterleavedAccessImpl {
101
101
102
102
// / Transform an interleaved load into target specific intrinsics.
103
103
bool lowerInterleavedLoad (LoadInst *LI,
104
- SmallVector <Instruction *, 32 > &DeadInsts);
104
+ SmallVectorImpl <Instruction *> &DeadInsts);
105
105
106
106
// / Transform an interleaved store into target specific intrinsics.
107
107
bool lowerInterleavedStore (StoreInst *SI,
108
- SmallVector <Instruction *, 32 > &DeadInsts);
108
+ SmallVectorImpl <Instruction *> &DeadInsts);
109
109
110
110
// / Transform a load and a deinterleave intrinsic into target specific
111
111
// / instructions.
112
112
bool lowerDeinterleaveIntrinsic (IntrinsicInst *II,
113
- SmallVector <Instruction *, 32 > &DeadInsts);
113
+ SmallVectorImpl <Instruction *> &DeadInsts);
114
114
115
115
// / Transform an interleave intrinsic and a store into target specific
116
116
// / instructions.
117
117
bool lowerInterleaveIntrinsic (IntrinsicInst *II,
118
- SmallVector <Instruction *, 32 > &DeadInsts);
118
+ SmallVectorImpl <Instruction *> &DeadInsts);
119
119
120
120
// / Returns true if the uses of an interleaved load by the
121
121
// / extractelement instructions in \p Extracts can be replaced by uses of the
@@ -250,7 +250,7 @@ static bool isReInterleaveMask(ShuffleVectorInst *SVI, unsigned &Factor,
250
250
}
251
251
252
252
bool InterleavedAccessImpl::lowerInterleavedLoad (
253
- LoadInst *LI, SmallVector <Instruction *, 32 > &DeadInsts) {
253
+ LoadInst *LI, SmallVectorImpl <Instruction *> &DeadInsts) {
254
254
if (!LI->isSimple () || isa<ScalableVectorType>(LI->getType ()))
255
255
return false ;
256
256
@@ -454,7 +454,7 @@ bool InterleavedAccessImpl::tryReplaceExtracts(
454
454
}
455
455
456
456
bool InterleavedAccessImpl::lowerInterleavedStore (
457
- StoreInst *SI, SmallVector <Instruction *, 32 > &DeadInsts) {
457
+ StoreInst *SI, SmallVectorImpl <Instruction *> &DeadInsts) {
458
458
if (!SI->isSimple ())
459
459
return false ;
460
460
@@ -480,7 +480,7 @@ bool InterleavedAccessImpl::lowerInterleavedStore(
480
480
}
481
481
482
482
bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic (
483
- IntrinsicInst *DI, SmallVector <Instruction *, 32 > &DeadInsts) {
483
+ IntrinsicInst *DI, SmallVectorImpl <Instruction *> &DeadInsts) {
484
484
LoadInst *LI = dyn_cast<LoadInst>(DI->getOperand (0 ));
485
485
486
486
if (!LI || !LI->hasOneUse () || !LI->isSimple ())
@@ -499,7 +499,7 @@ bool InterleavedAccessImpl::lowerDeinterleaveIntrinsic(
499
499
}
500
500
501
501
bool InterleavedAccessImpl::lowerInterleaveIntrinsic (
502
- IntrinsicInst *II, SmallVector <Instruction *, 32 > &DeadInsts) {
502
+ IntrinsicInst *II, SmallVectorImpl <Instruction *> &DeadInsts) {
503
503
if (!II->hasOneUse ())
504
504
return false ;
505
505
0 commit comments