File tree 3 files changed +6
-7
lines changed 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,7 @@ static unsigned getSegInstLog2SEW(StringRef InstName) {
218
218
#undef KEY_VAL_ALL_NF
219
219
#undef KEY_VAL
220
220
221
- if (SegInsts.contains (InstName))
222
- return SegInsts[InstName];
223
- return 0 ;
221
+ return SegInsts.lookup (InstName);
224
222
}
225
223
226
224
void emitCodeGenSwitchBody (const RVVIntrinsic *RVVI, raw_ostream &OS) {
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ class Type {
266
266
return getTypeID () == ScalableVectorTyID || getTypeID () == FixedVectorTyID;
267
267
}
268
268
269
- // True if this is an instance of TargetExtType of RISCV vector tuple.
269
+ // True if this is an instance of TargetExtType of RISC-V vector tuple.
270
270
bool isRISCVVectorTupleTy () const ;
271
271
272
272
// / Return true if this type could be converted with a lossless BitCast to
Original file line number Diff line number Diff line change @@ -852,16 +852,17 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
852
852
return TargetTypeInfo (ScalableVectorType::get (Type::getInt1Ty (C), 16 ),
853
853
TargetExtType::HasZeroInit);
854
854
855
- // RISCV vector tuple type. The layout is represented as the type that needs
855
+ // RISC-V vector tuple type. The layout is represented as the type that needs
856
856
// the same number of vector registers(VREGS) as this tuple type, represented
857
857
// as <vscale x (VREGS * 8) x i8>.
858
858
if (Name == " riscv_vec_tuple" ) {
859
859
unsigned TotalNumElts =
860
860
std::max (cast<ScalableVectorType>(Ty->getTypeParameter (0 ))
861
861
->getMinNumElements (),
862
- 8UL ) *
862
+ ( uint64_t ) 8 ) *
863
863
Ty->getIntParameter (0 );
864
- return TargetTypeInfo (ScalableVectorType::get (Type::getInt8Ty (C), TotalNumElts));
864
+ return TargetTypeInfo (
865
+ ScalableVectorType::get (Type::getInt8Ty (C), TotalNumElts));
865
866
}
866
867
867
868
return TargetTypeInfo (Type::getVoidTy (C));
You can’t perform that action at this time.
0 commit comments