diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-19 04:17:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-19 04:17:36 +0000 |
commit | 849832c0fb47f4e111840e0031b9129d41ffb389 (patch) | |
tree | f2b648db29f164ed6365a3a316baa7de17063eb9 /test | |
parent | 10382fb71d8306f320ecbeb7049d25354c0e5457 (diff) | |
download | llvm-849832c0fb47f4e111840e0031b9129d41ffb389.tar.gz llvm-849832c0fb47f4e111840e0031b9129d41ffb389.tar.bz2 llvm-849832c0fb47f4e111840e0031b9129d41ffb389.tar.xz |
part of PR4405: disable a contentious optimization for
strcmp -> memcmp when the lengths of the strings are unknown.
Patch by Nick Lewycky!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/2008-12-20-StrcmpMemcmp.ll | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/Transforms/SimplifyLibCalls/2008-12-20-StrcmpMemcmp.ll b/test/Transforms/SimplifyLibCalls/2008-12-20-StrcmpMemcmp.ll deleted file mode 100644 index d35da8d1ef..0000000000 --- a/test/Transforms/SimplifyLibCalls/2008-12-20-StrcmpMemcmp.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep call.*memcmp - -@.str = internal constant [2 x i8] c"x\00" - -declare i32 @strcmp(i8* %dest, i8* %src) - -define i32 @foo(i8* %x, i8* %y) { - %A = call i32 @strcmp(i8* %x, i8* getelementptr ([2 x i8]* @.str, i32 0, i32 0)) - ret i32 %A -} |