Gate-and-Merge