Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
test/CodeGen/X86/statepoint-call-lowering.ll
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
define i1 @test_relocate(i32 addrspace(1)* %a) gc "statepoint-example" { | define i1 @test_relocate(i32 addrspace(1)* %a) gc "statepoint-example" { | ||||
; CHECK-LABEL: test_relocate | ; CHECK-LABEL: test_relocate | ||||
; Check that an ununsed relocate has no code-generation impact | ; Check that an ununsed relocate has no code-generation impact | ||||
; CHECK: pushq %rax | ; CHECK: pushq %rax | ||||
; CHECK: callq return_i1 | ; CHECK: callq return_i1 | ||||
; CHECK-NEXT: .Ltmp5: | ; CHECK-NEXT: .Ltmp5: | ||||
; CHECK-NEXT: popq %rcx | ; CHECK-NEXT: popq %rcx | ||||
; CHECK-NEXT: .Lcfi11: | |||||
; CHECK-NEXT: .cfi_def_cfa_offset 8 | |||||
; CHECK-NEXT: retq | ; CHECK-NEXT: retq | ||||
entry: | entry: | ||||
%safepoint_token = tail call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32 addrspace(1)* %a) | %safepoint_token = tail call token (i64, i32, i1 ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_i1f(i64 0, i32 0, i1 ()* @return_i1, i32 0, i32 0, i32 0, i32 0, i32 addrspace(1)* %a) | ||||
%call1 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 7, i32 7) | %call1 = call i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(token %safepoint_token, i32 7, i32 7) | ||||
%call2 = call zeroext i1 @llvm.experimental.gc.result.i1(token %safepoint_token) | %call2 = call zeroext i1 @llvm.experimental.gc.result.i1(token %safepoint_token) | ||||
ret i1 %call2 | ret i1 %call2 | ||||
} | } | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |