================ @@ -5322,6 +5324,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, IRCallArgs[FirstIRArg] = Val; break; } + } else if (I->getType()->isArrayParameterType()) { + // use the tmp created by the HLSLOutArgExpr + // instead of creating a new one below and copying the tmp into it. ---------------- llvm-beanz wrote:
```suggestion // Don't produce a temporary for ArrayParameterType arguments. // ArrayParameterType arguments are only created from // HLSL_ArrayRValue casts and HLSLOutArgExpr expressions, both // of which create temporaries already. This allows us to just use the // scalar for the decayed array pointer as the argument directly. ``` https://github.com/llvm/llvm-project/pull/111047 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits