[K/N] Fix redundant sp removal tests
This commit is contained in:
committed by
Space Team
parent
0946039661
commit
6619edbbac
@@ -16,20 +16,20 @@ fun g() = f()
|
||||
// CHECK-LABEL: define %struct.ObjHeader* @"kfun:#h(kotlin.Boolean){}kotlin.Any"
|
||||
@Retain
|
||||
fun h(cond: Boolean): Any {
|
||||
// CHECK: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-SMALLBINARY: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
// CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
// CHECK: br
|
||||
// CHECK-SMALLBINARY: br
|
||||
if (cond) {
|
||||
// CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
// CHECK: br
|
||||
// CHECK-SMALLBINARY: br
|
||||
return listOf(C(), C())
|
||||
} else {
|
||||
// CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
return listOf(C(), C(), C())
|
||||
}
|
||||
@@ -39,11 +39,11 @@ fun h(cond: Boolean): Any {
|
||||
// CHECK-LABEL: define void @"kfun:#main(){}"()
|
||||
@Retain
|
||||
fun main() {
|
||||
// CHECK: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-SMALLBINARY: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
// CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE
|
||||
// CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE
|
||||
// CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}}
|
||||
println(g())
|
||||
println(h(true))
|
||||
// CHECK: }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user