[PATCH] D36922: [LibCallSimplifier] try harder to fold memcmp with constant arguments

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 19 15:59:19 PDT 2017


majnemer added a comment.

Canonicalizing away from memcmp seems pretty good to me. An easy way (I think) to show benefit is that multiple memcmps involving the same non-constant operand will CSE the loads which results in a considerably more analyzable result.


https://reviews.llvm.org/D36922





More information about the llvm-commits mailing list