kparzysz added a comment. Also, I don't think I understand the motivation for not expanding builtin_mempcpy directly in the IR into the builtin_memcpy/add combination. Is there a benefit of keeping it as a unit? http://reviews.llvm.org/D21920