Perhaps it should be named something a little more descriptive? `mergeByLargestSection`? LGTM, this implementation more closely matches the desired semantics. http://llvm-reviews.chandlerc.com/D3011