[clang] [llvm] [SVE] Replace unnecessary Intrinsic::aarch64_sve_ptrue construction. (PR #203349)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 10:47:26 PDT 2026
================
@@ -4277,7 +4270,7 @@ Value *CodeGenFunction::EmitAArch64SVEBuiltinExpr(unsigned BuiltinID,
return DupQLane;
SVETypeFlags TypeFlags(Builtin->TypeModifier);
- Value *Pred = EmitSVEAllTruePred(TypeFlags);
+ auto *Pred = ConstantInt::getTrue(getSVEPredType(TypeFlags));
----------------
paulwalker-arm wrote:
I wasn't sure but thought "other places where the type is already obvious from the context" might apply. I'll replace it anyway as I don't like auto so much.
https://github.com/llvm/llvm-project/pull/203349
More information about the cfe-commits
mailing list