@@ -21462,7 +21462,7 @@ bool RISCVTargetLowering::lowerDeinterleaveIntrinsicToLoad(
21462
21462
if (DI->getIntrinsicID() != Intrinsic::vector_deinterleave2)
21463
21463
return false;
21464
21464
21465
- unsigned Factor = 2;
21465
+ const unsigned Factor = 2;
21466
21466
21467
21467
VectorType *VTy = cast<VectorType>(DI->getOperand(0)->getType());
21468
21468
VectorType *ResVTy = cast<VectorType>(DI->getType()->getContainedType(0));
@@ -21497,7 +21497,7 @@ bool RISCVTargetLowering::lowerDeinterleaveIntrinsicToLoad(
21497
21497
LI->getContext(), "riscv.vector.tuple",
21498
21498
ScalableVectorType::get(Type::getInt8Ty(LI->getContext()),
21499
21499
NumElts * SEW / 8),
21500
- 2 );
21500
+ Factor );
21501
21501
21502
21502
VlsegNFunc = Intrinsic::getDeclaration(LI->getModule(), IntrIds[Factor - 2],
21503
21503
{VecTupTy, XLenTy});
@@ -21533,7 +21533,7 @@ bool RISCVTargetLowering::lowerInterleaveIntrinsicToStore(
21533
21533
if (II->getIntrinsicID() != Intrinsic::vector_interleave2)
21534
21534
return false;
21535
21535
21536
- unsigned Factor = 2;
21536
+ const unsigned Factor = 2;
21537
21537
21538
21538
VectorType *VTy = cast<VectorType>(II->getType());
21539
21539
VectorType *InVTy = cast<VectorType>(II->getOperand(0)->getType());
@@ -21567,7 +21567,7 @@ bool RISCVTargetLowering::lowerInterleaveIntrinsicToStore(
21567
21567
SI->getContext(), "riscv.vector.tuple",
21568
21568
ScalableVectorType::get(Type::getInt8Ty(SI->getContext()),
21569
21569
NumElts * SEW / 8),
21570
- 2 );
21570
+ Factor );
21571
21571
21572
21572
VssegNFunc = Intrinsic::getDeclaration(SI->getModule(), IntrIds[Factor - 2],
21573
21573
{VecTupTy, XLenTy});
0 commit comments