summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/PartialSpecialize/dg.exp3
-rw-r--r--llvm/test/Transforms/PartialSpecialize/heuristics.ll49
-rw-r--r--llvm/test/Transforms/PartialSpecialize/two-specializations.ll37
3 files changed, 0 insertions, 89 deletions
diff --git a/llvm/test/Transforms/PartialSpecialize/dg.exp b/llvm/test/Transforms/PartialSpecialize/dg.exp
deleted file mode 100644
index f2005891a59..00000000000
--- a/llvm/test/Transforms/PartialSpecialize/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/llvm/test/Transforms/PartialSpecialize/heuristics.ll b/llvm/test/Transforms/PartialSpecialize/heuristics.ll
deleted file mode 100644
index 5ccf9ad86ef..00000000000
--- a/llvm/test/Transforms/PartialSpecialize/heuristics.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; If there are not enough callsites for a particular specialization to
-; justify its existence, the specialization shouldn't be created.
-;
-; RUN: opt -S -partialspecialization -disable-inlining %s | FileCheck %s
-declare void @callback1()
-declare void @callback2()
-
-declare void @othercall()
-
-define internal void @UseCallback(void()* %pCallback) {
- call void %pCallback()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- call void @othercall()
- ret void
-}
-
-define void @foo(void()* %pNonConstCallback)
-{
-Entry:
-; CHECK: Entry
-; CHECK-NOT: call void @UseCallback(void ()* @callback1)
-; CHECK: call void @UseCallback(void ()* @callback2)
-; CHECK-NEXT: call void @UseCallback(void ()* @callback2)
-; CHECK-NEXT: ret void
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback2)
- call void @UseCallback(void()* @callback2)
-
- ret void
-}
diff --git a/llvm/test/Transforms/PartialSpecialize/two-specializations.ll b/llvm/test/Transforms/PartialSpecialize/two-specializations.ll
deleted file mode 100644
index bc3da22e185..00000000000
--- a/llvm/test/Transforms/PartialSpecialize/two-specializations.ll
+++ /dev/null
@@ -1,37 +0,0 @@
-; If there are two specializations of a function, make sure each callsite
-; calls the right one.
-;
-; RUN: opt -S -partialspecialization -disable-inlining %s | opt -S -inline | FileCheck %s -check-prefix=CORRECT
-; RUN: opt -S -partialspecialization -disable-inlining %s | FileCheck %s
-declare void @callback1()
-declare void @callback2()
-
-define internal void @UseCallback(void()* %pCallback) {
- call void %pCallback()
- ret void
-}
-
-define void @foo(void()* %pNonConstCallback)
-{
-Entry:
-; CORRECT: Entry
-; CORRECT-NEXT: call void @callback1()
-; CORRECT-NEXT: call void @callback1()
-; CORRECT-NEXT: call void @callback2()
-; CORRECT-NEXT: call void %pNonConstCallback()
-; CORRECT-NEXT: call void @callback1()
-; CORRECT-NEXT: call void @callback2()
-; CORRECT-NEXT: call void @callback2()
-; CHECK: Entry
-; CHECK-NOT: call void @UseCallback(void ()* @callback1)
-; CHECK-NOT: call void @UseCallback(void ()* @callback2)
-; CHECK: ret void
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback2)
- call void @UseCallback(void()* %pNonConstCallback)
- call void @UseCallback(void()* @callback1)
- call void @UseCallback(void()* @callback2)
- call void @UseCallback(void()* @callback2)
- ret void
-}
OpenPOWER on IntegriCloud