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