HomePhabricator

[MergeICmps] MergeICmps is a new optimization pass that turns chains of integer

Description

[MergeICmps] 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==().

For now this is disabled by default until:

Differential Revision:
https://reviews.llvm.org/D33987

Details