aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/memmove.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-28 05:30:41 +0000
committerChris Lattner <sabre@nondot.org>2008-05-28 05:30:41 +0000
commita935db8ea28ee73be647e8aa46ce59baf9279306 (patch)
tree972f570b46f92773f937cbd48c623bf3bcd70108 /test/Transforms/InstCombine/memmove.ll
parente5ab3355ba30d6d45ce67482039ee567f3763284 (diff)
Implement PR2370: memmove(x,x,size) -> noop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/memmove.ll')
-rw-r--r--test/Transforms/InstCombine/memmove.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/memmove.ll b/test/Transforms/InstCombine/memmove.ll
index 2cb346f112..09ec67d265 100644
--- a/test/Transforms/InstCombine/memmove.ll
+++ b/test/Transforms/InstCombine/memmove.ll
@@ -34,3 +34,9 @@ define i32 @test3() {
ret i32 0
}
+; PR2370
+define void @test4(i8* %a) {
+ tail call void @llvm.memmove.i32( i8* %a, i8* %a, i32 100, i32 1 )
+ ret void
+}
+