diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-16 10:30:29 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-16 10:30:29 +0000 |
commit | a13bd20396f5766fabcebdf385f9f8e3ce347540 (patch) | |
tree | 7fc90fa4858a9325779c5a707ff10c21ea7cd245 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 38e5f433b21995041e6293c836371b0a3f782576 (diff) | |
download | llvm-a13bd20396f5766fabcebdf385f9f8e3ce347540.zip llvm-a13bd20396f5766fabcebdf385f9f8e3ce347540.tar.gz llvm-a13bd20396f5766fabcebdf385f9f8e3ce347540.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.
llvm-svn: 106097
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions