diff options
| author | Meador Inge <meadori@codesourcery.com> | 2012-10-31 00:20:56 +0000 |
|---|---|---|
| committer | Meador Inge <meadori@codesourcery.com> | 2012-10-31 00:20:56 +0000 |
| commit | 9a6a190562ca56f5124fc8024afcdddf830eb046 (patch) | |
| tree | af88abb8f1bfecee8a1af30dfdb3f6531c00d95d /llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll | |
| parent | cdb2ca54ae8d2892c194052cfb9cb52665398e8d (diff) | |
| download | bcm5719-llvm-9a6a190562ca56f5124fc8024afcdddf830eb046.tar.gz bcm5719-llvm-9a6a190562ca56f5124fc8024afcdddf830eb046.zip | |
instcombine: Migrate stpcpy optimizations
This patch migrates the stpcpy optimizations from the simplify-libcalls
pass into the instcombine library call simplifier. Note that the
__stpcpy_chk simplifications were migrated in a previous commit.
llvm-svn: 167083
Diffstat (limited to 'llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll b/llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll index d06b3286f51..05603918c64 100644 --- a/llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll +++ b/llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll @@ -16,7 +16,7 @@ define void @test_simplify1() { %dst = getelementptr inbounds [60 x i8]* @a, i32 0, i32 0 %src = getelementptr inbounds [12 x i8]* @.str, i32 0, i32 0 -; CHECK-NEXT: call i8* @stpcpy +; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i32 call i8* @__stpcpy_chk(i8* %dst, i8* %src, i32 60) ret void } @@ -26,7 +26,7 @@ define void @test_simplify2() { %dst = getelementptr inbounds [60 x i8]* @a, i32 0, i32 0 %src = getelementptr inbounds [12 x i8]* @.str, i32 0, i32 0 -; CHECK-NEXT: call i8* @stpcpy +; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i32 call i8* @__stpcpy_chk(i8* %dst, i8* %src, i32 12) ret void } @@ -36,7 +36,7 @@ define void @test_simplify3() { %dst = getelementptr inbounds [60 x i8]* @a, i32 0, i32 0 %src = getelementptr inbounds [12 x i8]* @.str, i32 0, i32 0 -; CHECK-NEXT: call i8* @stpcpy +; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i32 call i8* @__stpcpy_chk(i8* %dst, i8* %src, i32 -1) ret void } |

