[PATCH] D50019: [InstCombine] Expand strcmp(s, "x") to memcmp

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 11:35:42 PDT 2018


xbolva00 added a comment.

What about

char buf[10];
if (strcmp(buf, "key") eq / ne 0)

?

We can promote it to memcmp now, no?


https://reviews.llvm.org/D50019





More information about the llvm-commits mailing list