MergeICmps is a new optimization pass that turns chains of integer comparisons into memcmp (thanks to recent improvements in the LLVM codegen, the memcmp is typically inlined as a chain of efficient hardware comparisons). This typically benefits C++ member or nonmember operator==().
The proof of concept shows speedups of about 2-3x with a reduced code size (typically by a factor 2-3x) .
More details can be found in this document.