Skip to content

Commit 64aafd6

Browse files
authored
[RISCV] Remove unneeded multiply in RISCV CodeGenTypes (#92644)
The NumVectors other than 1 is handled by the code above.
1 parent 1c58208 commit 64aafd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CodeGenTypes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
523523
return llvm::StructType::get(getLLVMContext(), EltTys);
524524
}
525525
return llvm::ScalableVectorType::get(ConvertType(Info.ElementType),
526-
Info.EC.getKnownMinValue() *
527-
Info.NumVectors);
526+
Info.EC.getKnownMinValue());
528527
}
529528
#define WASM_REF_TYPE(Name, MangledName, Id, SingletonId, AS) \
530529
case BuiltinType::Id: { \

0 commit comments

Comments
 (0)