@@ -204,7 +204,7 @@ bool RISCVTargetLowering::lowerInterleavedLoad(
204
204
205
205
const DataLayout &DL = Load->getDataLayout ();
206
206
auto *VTy = cast<FixedVectorType>(Shuffles[0 ]->getType ());
207
- auto *XLenTy = Type:: getIntNTy (Load-> getContext (), Subtarget.getXLen ());
207
+ auto *XLenTy = Builder. getIntNTy (Subtarget.getXLen ());
208
208
209
209
Value *Ptr, *VL;
210
210
Align Alignment;
@@ -277,7 +277,7 @@ bool RISCVTargetLowering::lowerInterleavedStore(Instruction *Store,
277
277
// Given SVI : <n*factor x ty>, then VTy : <n x ty>
278
278
auto *VTy = FixedVectorType::get (ShuffleVTy->getElementType (),
279
279
ShuffleVTy->getNumElements () / Factor);
280
- auto *XLenTy = Type:: getIntNTy (Store-> getContext (), Subtarget.getXLen ());
280
+ auto *XLenTy = Builder. getIntNTy (Subtarget.getXLen ());
281
281
282
282
Value *Ptr, *VL;
283
283
Align Alignment;
@@ -351,7 +351,7 @@ bool RISCVTargetLowering::lowerDeinterleaveIntrinsicToLoad(
351
351
VectorType *ResVTy = getDeinterleavedVectorType (DI);
352
352
353
353
const DataLayout &DL = Load->getDataLayout ();
354
- auto *XLenTy = Type:: getIntNTy (Load-> getContext (), Subtarget.getXLen ());
354
+ auto *XLenTy = Builder. getIntNTy (Subtarget.getXLen ());
355
355
356
356
Value *Ptr, *VL;
357
357
Align Alignment;
@@ -372,8 +372,7 @@ bool RISCVTargetLowering::lowerDeinterleaveIntrinsicToLoad(
372
372
unsigned NumElts = ResVTy->getElementCount ().getKnownMinValue ();
373
373
Type *VecTupTy = TargetExtType::get (
374
374
Load->getContext (), " riscv.vector.tuple" ,
375
- ScalableVectorType::get (Type::getInt8Ty (Load->getContext ()),
376
- NumElts * SEW / 8 ),
375
+ ScalableVectorType::get (Builder.getInt8Ty (), NumElts * SEW / 8 ),
377
376
Factor);
378
377
Function *VlsegNFunc = Intrinsic::getOrInsertDeclaration (
379
378
Load->getModule (), ScalableVlsegIntrIds[Factor - 2 ],
@@ -414,7 +413,7 @@ bool RISCVTargetLowering::lowerInterleaveIntrinsicToStore(
414
413
415
414
auto *InVTy = cast<VectorType>(InterleaveValues[0 ]->getType ());
416
415
const DataLayout &DL = Store->getDataLayout ();
417
- Type *XLenTy = Type:: getIntNTy (Store-> getContext (), Subtarget.getXLen ());
416
+ Type *XLenTy = Builder. getIntNTy (Subtarget.getXLen ());
418
417
419
418
Value *Ptr, *VL;
420
419
Align Alignment;
@@ -438,9 +437,7 @@ bool RISCVTargetLowering::lowerInterleaveIntrinsicToStore(
438
437
unsigned NumElts = InVTy->getElementCount ().getKnownMinValue ();
439
438
Type *VecTupTy = TargetExtType::get (
440
439
Store->getContext (), " riscv.vector.tuple" ,
441
- ScalableVectorType::get (Type::getInt8Ty (Store->getContext ()),
442
- NumElts * SEW / 8 ),
443
- Factor);
440
+ ScalableVectorType::get (Builder.getInt8Ty (), NumElts * SEW / 8 ), Factor);
444
441
445
442
Value *StoredVal = PoisonValue::get (VecTupTy);
446
443
for (unsigned i = 0 ; i < Factor; ++i)
0 commit comments