Enable the MergeFunc pass

Fixes #9536