[PATCH] D18230: [SimplifyLibCalls] Simplify strlen to a subtraction for certain cases

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 16:13:14 PDT 2016

nlopes added a subscriber: nlopes.
nlopes added a comment.

Could you please explain the motivation for this transformation?
Doesn't seem very profitable to me unless strlen(s) has already been computed before. Otherwise we end up visiting more memory positions than with the original code.


More information about the llvm-commits mailing list