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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 19 08:57:28 PDT 2017


spatel added a comment.

In https://reviews.llvm.org/D36922#846470, @davide wrote:

> What GCC does in this case? (or icc?)


https://godbolt.org/g/oKf3s8

So gcc gets it; icc did something terrible; clang also gets this, but in the x86 backend. This is moving the optimization up in the pipeline to hopefully combine with a common prefix optimization suggested by Joerg in https://reviews.llvm.org/D35035.


https://reviews.llvm.org/D36922





More information about the llvm-commits mailing list