Closed
Description
Some intrinsic functions can be effectively implemented in pure MIR code. Notably, the wrapping and checked arithmetic functions, which can turn into regular BinaryOp
and CheckedBinaryOp
(when implemented) rvalues. Similarly intrinsics like move_val_init
can be exactly represented in the MIR.
While relatively low impact right now, due to most intrinsics being used via wrapper functions, if/when we get MIR-level inlining, this would allow those intrinsics to better participate in optimisations.