Module sway_ir::optimize::fn_dedup

source ·
Expand description

§Deduplicate functions.

If two functions are functionally identical, eliminate one and replace all calls to it with a call to the retained one.

This pass shouldn’t be required once the monomorphiser stops generating a new function for each instantiation even when the exact same instantiation exists.

Constants§

Functions§