Jay Foad | b7454fd | 2012-05-12 08:30:16 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -globalopt -S | FileCheck %s |
2 | ; Check that the mere presence of a blockaddress doesn't prevent -globalopt | ||||
3 | ; from promoting @f to fastcc. | ||||
4 | |||||
5 | ; CHECK: define{{.*}}fastcc{{.*}}@f | ||||
6 | define internal i8* @f() { | ||||
7 | ret i8* blockaddress(@f, %L1) | ||||
8 | L1: | ||||
9 | ret i8* null | ||||
10 | } | ||||
11 | |||||
12 | define void @g() { | ||||
13 | ; CHECK: call{{.*}}fastcc{{.*}}@f | ||||
14 | %p = call i8* @f() | ||||
15 | ret void | ||||
16 | } |