Pattern matching pass

You need to use the MergeComposite pass. You can search its usage in our repo.