[llvm] r228612 - Minor test cleanup

Philip Reames listmail at philipreames.com
Mon Feb 9 13:50:31 PST 2015


Author: reames
Date: Mon Feb  9 15:50:31 2015
New Revision: 228612

URL: http://llvm.org/viewvc/llvm-project?rev=228612&view=rev
Log:
Minor test cleanup

a) add gc attribute
b) remove unused param


Modified:
    llvm/trunk/test/Transforms/PlaceSafepoints/basic.ll

Modified: llvm/trunk/test/Transforms/PlaceSafepoints/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/PlaceSafepoints/basic.ll?rev=228612&r1=228611&r2=228612&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/PlaceSafepoints/basic.ll (original)
+++ llvm/trunk/test/Transforms/PlaceSafepoints/basic.ll Mon Feb  9 15:50:31 2015
@@ -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





More information about the llvm-commits mailing list