Module nrvo

Source
Expand description

See the docs for RenameReturnPlace.

Structsยง

IsReturnPlaceRead ๐Ÿ”’
RenameReturnPlace ๐Ÿ”’
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.
RenameToReturnPlace ๐Ÿ”’

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: