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: