[PlaceSafepoints] Adjust enablement logic to default to off and be GC configurable...
[oota-llvm.git] / test / Transforms / PlaceSafepoints / basic.ll
index e9f24a5c86fef56dbd1b686de0e9154b2347bccf..0e3ed3d773d0846a0c8c0bcee39f634fce6df264 100644 (file)
@@ -10,6 +10,14 @@ entry:
   ret void
 }
 
+; On a non-gc function, we should NOT get an entry safepoint
+define void @test_negative() {
+; CHECK-LABEL: @test_negative
+entry:
+; CHECK-NOT: statepoint
+  ret void
+}
+
 ; Do we insert a backedge safepoint in a statically
 ; infinite loop?
 define void @test_backedge() gc "statepoint-example" {