1 ; RUN: opt < %s -basicaa -gvn -S | FileCheck %s
4 @g_3 = external global i8 ; <i8*> [#uses=2]
6 define i8 @func_1(i32 %x, i32 %y) nounwind {
9 %cmp = icmp eq i32 %x, %y
10 br i1 %cmp, label %ifelse, label %ifthen
12 ifthen: ; preds = %entry
15 ifelse: ; preds = %entry
16 %tmp3 = load i8, i8* @g_3 ; <i8> [#uses=0]
17 store i8 %tmp3, i8* %A
20 forcond: ; preds = %forinc
21 br i1 false, label %afterfor, label %forbody
23 forbody: ; preds = %forcond
26 forinc: ; preds = %forbody
29 afterfor: ; preds = %forcond, %forcond.thread
30 %tmp10 = load i8, i8* @g_3 ; <i8> [#uses=0]
34 ifend: ; preds = %afterfor, %ifthen