[PATCH] D35035: [InstCombine] Prevent memcpy generation for small data size

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 12 07:18:31 PDT 2017


joerg added a comment.

@spatel: I don't see a reason why we can't (or shouldn't) try to do common-prefix elimination for the memcmp intrinsic. It certainly seems to be better to me to preserve the intrinsics in your case as they should be easier to reason about. That's kind of my question for here too -- why does the expansion allow better code?


https://reviews.llvm.org/D35035





More information about the llvm-commits mailing list