1 ; RUN: opt < %s -basicaa -gvn -S | grep {ret i8 \[%\]tmp3}
4 @g_3 = external global i8 ; <i8*> [#uses=2]
6 define i8 @func_1() nounwind {
8 br i1 false, label %ifelse, label %ifthen
10 ifthen: ; preds = %entry
13 ifelse: ; preds = %entry
14 %tmp3 = load i8* @g_3 ; <i8> [#uses=0]
15 br label %forcond.thread
17 forcond.thread: ; preds = %ifelse
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* @g_3 ; <i8> [#uses=0]
33 ifend: ; preds = %afterfor, %ifthen