Add strchr(p, 0) -> p + strlen(p) to SimplifyLibCalls

Press ? to show keyboard shortcuts.
Committed
redstarFeb 3 2014, 9:55 PM
Parents
rL200735: ARM: Enable use of relocation type tlsldo in debug info for tls data.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

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

rL200736

llvm/trunk/lib/Transforms/Utils/SimplifyLibCalls.cpp

Loading...

llvm/trunk/test/Transforms/InstCombine/strchr-1.ll

Loading...

Add Comment