[PATCH] D50019: [InstCombine] Expand strcmp(s, "x") to memcmp
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 31 11:40:51 PDT 2018
efriedma added a comment.
Not sure how often that shows up, but yes, if you can prove the the pointer is dereferenceable, it's okay to transform to memcmp.
https://reviews.llvm.org/D50019
More information about the llvm-commits
mailing list