Unix: Unecessary struct copy while passing by value on stack #5024
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
enhancement
Product code improvement that does NOT require public API changes/additions
optimization
os-linux
Linux OS (any supported distro)
os-mac-os-x
macOS aka OSX
tenet-performance
Performance related issue
Milestone
Say caller foo() is passing a struct 's' by value on stack to bar(), at high-level code generated is
// Make a copy of s by assigning to a local t on foo()'s stack frame
t = s
copy t on to stack
bar()
t = s copy is unnecessary as 's' could be directly copied to stack.
The text was updated successfully, but these errors were encountered: