1 ; RUN: llvm-as < %s | opt -indvars
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
4 @ue = external global i64
6 define i32 @foo() nounwind {
11 %t0 = load i64* @ue, align 8
12 %t1 = sub i64 %t0, %i.0.i35
14 br i1 undef, label %bb15.i28, label %bb19.i31
20 %y.0.i = phi i64 [ %t2, %bb15.i28 ], [ %t2, %bb14.i27 ]
24 br i1 undef, label %bb37.i, label %bb14.i27
27 %t3 = add i64 %i.0.i35, 1
31 %i.0.i35 = phi i64 [ 1, %entry ], [ %t3, %bb37.i ]