Expand description
See the docs for RenameReturnPlace
.
Structs§
- IsReturn
Place 🔒Read - Rename
Return 🔒Place - This pass looks for MIR that always copies the same local into the return place and eliminates
the copy by renaming all uses of that local to
_0
. - Rename
ToReturn 🔒Place
Functions§
- as_
local_ 🔒assigned_ to_ return_ place - find_
local_ 🔒assigned_ to_ return_ place - local_
eligible_ 🔒for_ nrvo - MIR that is eligible for the NRVO must fulfill two conditions: