llvm.org GIT mirror llvm / 2eace6e
Minor test cleanup a) add gc attribute b) remove unused param git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228612 91177308-0d34-0410-b5e6-96231b3b80d8 Philip Reames 4 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
11
22
33 ; Do we insert a simple entry safepoint?
4 define void @test_entry(i8 addrspace(1)* %arg) {
4 define void @test_entry() gc "statepoint-example" {
55 ; CHECK-LABEL: @test_entry
66 entry:
77 ; CHECK-LABEL: entry
1111
1212 ; Do we insert a backedge safepoint in a statically
1313 ; infinite loop?
14 define void @test_backedge(i8 addrspace(1)* %arg) {
14 define void @test_backedge() gc "statepoint-example" {
1515 ; CHECK-LABEL: test_backedge
1616 entry:
1717 ; CHECK-LABEL: entry
2222 ; CHECK-LABEL: other
2323 ; CHECK: statepoint
2424 other:
25 %tmp = bitcast i8 addrspace(1)* %arg to i32 addrspace(1)*
2625 call void undef()
2726 br label %other
2827 }
2928
3029 ; Check that we remove an unreachable block rather than trying
3130 ; to insert a backedge safepoint
32 define void @test_unreachable(i8 addrspace(1)* %arg) {
31 define void @test_unreachable() gc "statepoint-example" {
3332 ; CHECK-LABEL: test_unreachable
3433 entry:
3534 ; CHECK-LABEL: entry
4544 declare void @foo()
4645
4746 ; Do we turn a call into it's own statepoint
48 define void @test_simple_call() {
47 define void @test_simple_call() gc "statepoint-example" {
4948 ; CHECK-LABEL: test_simple_call
5049 entry:
5150 br label %other