1 ; RUN: opt < %s -rewrite-statepoints-for-gc -spp-print-base-pointers -S 2>&1 | FileCheck %s 2 3 ; CHECK: derived %merged_value base %merged_value.base 4 5 declare void @foo() 6 7 define i64 addrspace(1)* @test(i64 addrspace(1)* %base_obj_x, i64 addrspace(1)* %base_obj_y, i1 %runtime_condition) gc "statepoint-example" { 8 entry: 9 br i1 %runtime_condition, label %here, label %there 10 11 here: ; preds = %entry 12 br label %bump 13 14 bump: ; preds = %here 15 br label %merge 16 17 there: ; preds = %entry 18 %y = getelementptr i64, i64 addrspace(1)* %base_obj_y, i32 1 19 br label %merge 20 21 merge: ; preds = %there, %bump 22 ; CHECK: merge: 23 ; CHECK: %merged_value.base = phi i64 addrspace(1)* [ %base_obj_x, %bump ], [ %base_obj_y, %there ] 24 ; CHECK-NEXT: %merged_value = phi i64 addrspace(1)* [ %base_obj_x, %bump ], [ %y, %there ] 25 %merged_value = phi i64 addrspace(1)* [ %base_obj_x, %bump ], [ %y, %there ] 26 call void @foo() [ "deopt"(i32 0, i32 -1, i32 0, i32 0, i32 0) ] 27 ret i64 addrspace(1)* %merged_value 28 } 29