summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/ARM/strcpy.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
committerEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
commita86343512845c9c1fdbac865fea88aa5fce7142a (patch)
tree666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/InstCombine/ARM/strcpy.ll
parent7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff)
downloadbcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz
bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/InstCombine/ARM/strcpy.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/ARM/strcpy.ll76
1 files changed, 0 insertions, 76 deletions
diff --git a/llvm/test/Transforms/InstCombine/ARM/strcpy.ll b/llvm/test/Transforms/InstCombine/ARM/strcpy.ll
deleted file mode 100644
index 19021219b52..00000000000
--- a/llvm/test/Transforms/InstCombine/ARM/strcpy.ll
+++ /dev/null
@@ -1,76 +0,0 @@
-; Test that the strcpy library call simplifier works correctly for ARM procedure calls
-; RUN: opt < %s -instcombine -S | FileCheck %s
-;
-; This transformation requires the pointer size, as it assumes that size_t is
-; the size of a pointer.
-target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
-
-@hello = constant [6 x i8] c"hello\00"
-@a = common global [32 x i8] zeroinitializer, align 1
-@b = common global [32 x i8] zeroinitializer, align 1
-
-declare i8* @strcpy(i8*, i8*)
-
-define arm_aapcscc void @test_simplify1() {
-; CHECK-LABEL: @test_simplify1(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
- %src = getelementptr [6 x i8], [6 x i8]* @hello, i32 0, i32 0
-
- call arm_aapcscc i8* @strcpy(i8* %dst, i8* %src)
-; CHECK: @llvm.memcpy.p0i8.p0i8.i32
- ret void
-}
-
-define arm_aapcscc i8* @test_simplify2() {
-; CHECK-LABEL: @test_simplify2(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
-
- %ret = call arm_aapcscc i8* @strcpy(i8* %dst, i8* %dst)
-; CHECK: ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @a, i32 0, i32 0)
- ret i8* %ret
-}
-
-define arm_aapcscc i8* @test_no_simplify1() {
-; CHECK-LABEL: @test_no_simplify1(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
- %src = getelementptr [32 x i8], [32 x i8]* @b, i32 0, i32 0
-
- %ret = call arm_aapcscc i8* @strcpy(i8* %dst, i8* %src)
-; CHECK: call arm_aapcscc i8* @strcpy
- ret i8* %ret
-}
-
-define arm_aapcs_vfpcc void @test_simplify1_vfp() {
-; CHECK-LABEL: @test_simplify1_vfp(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
- %src = getelementptr [6 x i8], [6 x i8]* @hello, i32 0, i32 0
-
- call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %src)
-; CHECK: @llvm.memcpy.p0i8.p0i8.i32
- ret void
-}
-
-define arm_aapcs_vfpcc i8* @test_simplify2_vfp() {
-; CHECK-LABEL: @test_simplify2_vfp(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
-
- %ret = call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %dst)
-; CHECK: ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @a, i32 0, i32 0)
- ret i8* %ret
-}
-
-define arm_aapcs_vfpcc i8* @test_no_simplify1_vfp() {
-; CHECK-LABEL: @test_no_simplify1_vfp(
-
- %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0
- %src = getelementptr [32 x i8], [32 x i8]* @b, i32 0, i32 0
-
- %ret = call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %src)
-; CHECK: call arm_aapcs_vfpcc i8* @strcpy
- ret i8* %ret
-}
OpenPOWER on IntegriCloud