1 ; RUN: opt -S < %s -globalopt | FileCheck %s
3 @G = internal global i32 42
5 define i8 @f() norecurse {
11 %a = load i8, i8* bitcast (i32* @G to i8*)
15 @H = internal global i32 42
16 @Halias = alias i32, i32* @H
18 ; @H can't be localized because @Halias uses it, and @Halias can't be converted to an instruction.
19 define i8 @g() norecurse {
25 %a = load i8, i8* bitcast (i32* @H to i8*)