1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -globalopt -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; Check that the mere presence of a blockaddress doesn't prevent -globalopt 3*9880d681SAndroid Build Coastguard Worker; from promoting @f to fastcc. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: define{{.*}}fastcc{{.*}}@f( 6*9880d681SAndroid Build Coastguard Workerdefine internal i8* @f() { 7*9880d681SAndroid Build Coastguard Worker ret i8* blockaddress(@f, %L1) 8*9880d681SAndroid Build Coastguard WorkerL1: 9*9880d681SAndroid Build Coastguard Worker ret i8* null 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdefine void @g() { 13*9880d681SAndroid Build Coastguard Worker ; CHECK: call{{.*}}fastcc{{.*}}@f 14*9880d681SAndroid Build Coastguard Worker %p = call i8* @f() 15*9880d681SAndroid Build Coastguard Worker ret void 16*9880d681SAndroid Build Coastguard Worker} 17