OSDN Git Service

Turn strcmp into memcmp, such as strcmp(P, "x") --> memcmp(P, "x", 2).
authorNick Lewycky <nicholas@mxc.ca>
Sun, 21 Dec 2008 00:19:21 +0000 (00:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 21 Dec 2008 00:19:21 +0000 (00:19 +0000)
commita8d08964475e5a364960d0d1d8a7ea422a31fa8b
tree7537f5025d3fc21cb8c1b8929ba1b6bc4614867b
parentdb8419c92a5c0e74b7a5c8e783c83962c7d0c761
Turn strcmp into memcmp, such as strcmp(P, "x") --> memcmp(P, "x", 2).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/2008-12-20-StrcmpMemcmp.ll [new file with mode: 0644]