[llvm] [LV] Use requested calling convention for vector math routines (PR #136122)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 05:34:45 PDT 2025
================
@@ -1231,6 +1231,8 @@ void VPWidenCallRecipe::execute(VPTransformState &State) {
CallInst *V = State.Builder.CreateCall(Variant, Args, OpBundles);
setFlags(V);
+ if (CallingConv::ID ID = Variant->getCallingConv())
+ V->setCallingConv(ID);
----------------
david-arm wrote:
Yep, good point. I've moved the assert while I'm here too. :)
https://github.com/llvm/llvm-project/pull/136122
More information about the llvm-commits
mailing list