Add strchr(p, 0) -> p + strlen(p) to SimplifyLibCalls
authorKai Nacke <kai.nacke@redstar.de>
Tue, 4 Feb 2014 05:55:16 +0000 (05:55 +0000)
committerKai Nacke <kai.nacke@redstar.de>
Tue, 4 Feb 2014 05:55:16 +0000 (05:55 +0000)
commit6840e895c1e77c5862c1d3f46747ae7f654476d4
treeff4b5e582ef1ea3ba98415d60ffbc9d1246b80a1
parenteabe14bd96c35fbb9b11288e9ee1785a64117896
Add strchr(p, 0) -> p + strlen(p) to SimplifyLibCalls

Add the missing transformation strchr(p, 0) -> p + strlen(p) to SimplifyLibCalls
and remove the ToDo comment.

Reviewer: Duncan P.N. Exan Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200736 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/strchr-1.ll