summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rwxr-xr-xllvm/test/Reduce/Inputs/remove-funcs.sh10
-rw-r--r--llvm/test/Reduce/remove-funcs.ll49
2 files changed, 0 insertions, 59 deletions
diff --git a/llvm/test/Reduce/Inputs/remove-funcs.sh b/llvm/test/Reduce/Inputs/remove-funcs.sh
deleted file mode 100755
index 2ea2a1a30ad..00000000000
--- a/llvm/test/Reduce/Inputs/remove-funcs.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# lli is passed as a test-arg so lit can recognize it
-ret=$($2 $1)
-
-if [[ $ret = 10 ]]; then
- exit 0
-else
- exit 1
-fi
diff --git a/llvm/test/Reduce/remove-funcs.ll b/llvm/test/Reduce/remove-funcs.ll
deleted file mode 100644
index 86b88861c21..00000000000
--- a/llvm/test/Reduce/remove-funcs.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; Test that llvm-reduce can remove uninteresting functions as well as
-; their InstCalls.
-;
-; RUN: llvm-reduce --test %p/Inputs/remove-funcs.sh --test-arg %lli %s
-; RUN: cat reduced.ll | FileCheck %s
-; REQUIRES: plugins, shell
-
-@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
-
-; CHECK-NOT: uninteresting1()
-define i32 @uninteresting1() {
-entry:
- ret i32 25
-}
-
-; CHECK: interesting()
-define i32 @interesting() {
-entry:
- ret i32 10
-}
-
-; CHECK-NOT: uninteresting2()
-define i32 @uninteresting2() {
-entry:
- ret i32 2000
-}
-
-; CHECK: main()
-define i32 @main() {
-entry:
- %retval = alloca i32, align 4
- %number = alloca i32, align 4
- store i32 0, i32* %retval, align 4
- store i32 0, i32* %number, align 4
- ; CHECK-NOT: %call = call i32 @uninteresting1()
- %call = call i32 @uninteresting1()
- ; CHECK: %call1 = call i32 @interesting()
- %call1 = call i32 @interesting()
- store i32 %call1, i32* %number, align 4
- %0 = load i32, i32* %number, align 4
- %call2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
- ; CHECK-NOT: %call3 = call i32 @uninteresting1()
- %call3 = call i32 @uninteresting1()
- ; CHECK-NOT: %call4 = call i32 @uninteresting2()
- %call4 = call i32 @uninteresting2()
- ret i32 0
-}
-
-declare i32 @printf(i8*, ...)
OpenPOWER on IntegriCloud