aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-06-16 10:30:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-06-16 10:30:29 +0000
commitfb48f0e5c992423390c071bf244709ca639c9f5c (patch)
tree81e28bf6bd992d559b95ca9aea0ed4662c29ef5b /lib/Support
parent160f30cd4ff881f768384f38f1b9d7694faa0b40 (diff)
downloadexternal_llvm-fb48f0e5c992423390c071bf244709ca639c9f5c.zip
external_llvm-fb48f0e5c992423390c071bf244709ca639c9f5c.tar.gz
external_llvm-fb48f0e5c992423390c071bf244709ca639c9f5c.tar.bz2
simplify-libcalls: fold strncmp(x, y, 1) -> memcmp(x, y, 1)
The memcmp will be optimized further and even the pathological case 'strstr(x, "x") == x' generates optimal code now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
0 files changed, 0 insertions, 0 deletions