[clang] [llvm] [NFC][LLVM] Refactor IRBuilder::Create{VScale,ElementCount,TypeSize}. (PR #142803)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 01:24:38 PDT 2025


================
@@ -4793,11 +4793,7 @@ Value *CodeGenFunction::EmitAArch64SVEBuiltinExpr(unsigned BuiltinID,
   case SVE::BI__builtin_sve_svlen_u64: {
     SVETypeFlags TF(Builtin->TypeModifier);
     auto VTy = cast<llvm::VectorType>(getSVEType(TF));
----------------
david-arm wrote:

nit: Is it worth strengthening the cast here, given it should always be a ScalableVectorType?

https://github.com/llvm/llvm-project/pull/142803


More information about the llvm-commits mailing list