sway_ir::optimize

Module 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§