summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-02-09 21:50:31 +0000
committerPhilip Reames <listmail@philipreames.com>2015-02-09 21:50:31 +0000
commit5fc82fd6b5af5ae9d2f43ee847213ba2fbeda45f (patch)
treef1136369a1a20cea7924f8adc1e3d63e4f4a218e /llvm
parent82ab65c7cd4afe94739009808686c6e6f42f90f6 (diff)
downloadbcm5719-llvm-5fc82fd6b5af5ae9d2f43ee847213ba2fbeda45f.tar.gz
bcm5719-llvm-5fc82fd6b5af5ae9d2f43ee847213ba2fbeda45f.zip
Minor test cleanup
a) add gc attribute b) remove unused param llvm-svn: 228612
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Transforms/PlaceSafepoints/basic.ll9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/test/Transforms/PlaceSafepoints/basic.ll b/llvm/test/Transforms/PlaceSafepoints/basic.ll
index c5a093c6d4d..a21066a5157 100644
--- a/llvm/test/Transforms/PlaceSafepoints/basic.ll
+++ b/llvm/test/Transforms/PlaceSafepoints/basic.ll
@@ -2,7 +2,7 @@
; Do we insert a simple entry safepoint?
-define void @test_entry(i8 addrspace(1)* %arg) {
+define void @test_entry() gc "statepoint-example" {
; CHECK-LABEL: @test_entry
entry:
; CHECK-LABEL: entry
@@ -12,7 +12,7 @@ entry:
; Do we insert a backedge safepoint in a statically
; infinite loop?
-define void @test_backedge(i8 addrspace(1)* %arg) {
+define void @test_backedge() gc "statepoint-example" {
; CHECK-LABEL: test_backedge
entry:
; CHECK-LABEL: entry
@@ -23,14 +23,13 @@ entry:
; CHECK-LABEL: other
; CHECK: statepoint
other:
- %tmp = bitcast i8 addrspace(1)* %arg to i32 addrspace(1)*
call void undef()
br label %other
}
; Check that we remove an unreachable block rather than trying
; to insert a backedge safepoint
-define void @test_unreachable(i8 addrspace(1)* %arg) {
+define void @test_unreachable() gc "statepoint-example" {
; CHECK-LABEL: test_unreachable
entry:
; CHECK-LABEL: entry
@@ -46,7 +45,7 @@ other:
declare void @foo()
; Do we turn a call into it's own statepoint
-define void @test_simple_call() {
+define void @test_simple_call() gc "statepoint-example" {
; CHECK-LABEL: test_simple_call
entry:
br label %other
OpenPOWER on IntegriCloud