1; RUN: opt < %s -rewrite-statepoints-for-gc -spp-print-base-pointers -S 2>&1 | FileCheck %s 2 3; CHECK: derived %select base null 4 5@global = external addrspace(1) global i8 6 7define i8 @test(i1 %cond) gc "statepoint-example" { 8 %derived1 = getelementptr i8, i8 addrspace(1)* @global, i64 1 9 %derived2 = getelementptr i8, i8 addrspace(1)* @global, i64 2 10 %select = select i1 %cond, i8 addrspace(1)* %derived1, i8 addrspace(1)* %derived2 11 call void @extern() 12; CHECK-NOT: relocate 13; CHECK: %load = load i8, i8 addrspace(1)* %select 14 %load = load i8, i8 addrspace(1)* %select 15 ret i8 %load 16} 17 18declare void @extern() gc "statepoint-example" 19 20declare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...) 21