brintos

brintos / llvm-project-archived public Read only

0
0
Text · 373 B · c7bb3e8 Raw
17 lines · plain
1; RUN: opt < %s -passes=globalopt -S | FileCheck %s2; Check that the mere presence of a blockaddress doesn't prevent -globalopt3; from promoting @f to fastcc.4 5; CHECK-LABEL: define{{.*}}fastcc{{.*}}@f(6define internal ptr @f() {7  ret ptr blockaddress(@f, %L1)8L1:9  ret ptr null10}11 12define void @g() {13  ; CHECK: call{{.*}}fastcc{{.*}}@f14  %p = call ptr @f()15  ret void16}17