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)
commita56bb7802199d3202535de2c44ea253dbc18f0b6
tree68718304251a52674d7b151eb0a531622c766ca3
parent5e8c30f19234865c8f4ce7b202fc782127ad77de
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
llvm-svn: 200736
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strchr-1.ll