Author: Brandon Wu Date: 2024-05-21T11:50:04+08:00 New Revision: 64aafd6908e3aa36c4504bc10f8d9fc819513f6c
URL: https://github.com/llvm/llvm-project/commit/64aafd6908e3aa36c4504bc10f8d9fc819513f6c DIFF: https://github.com/llvm/llvm-project/commit/64aafd6908e3aa36c4504bc10f8d9fc819513f6c.diff LOG: [RISCV] Remove unneeded multiply in RISCV CodeGenTypes (#92644) The NumVectors other than 1 is handled by the code above. Added: Modified: clang/lib/CodeGen/CodeGenTypes.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index e8d75eda029e6..0a926e4ac27fe 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -523,8 +523,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { return llvm::StructType::get(getLLVMContext(), EltTys); } return llvm::ScalableVectorType::get(ConvertType(Info.ElementType), - Info.EC.getKnownMinValue() * - Info.NumVectors); + Info.EC.getKnownMinValue()); } #define WASM_REF_TYPE(Name, MangledName, Id, SingletonId, AS) \ case BuiltinType::Id: { \ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits