1 ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
3 ; This caused an lnt crash at some point, just verify it will run through.
5 ; CHECK-LABEL: polly.merge_new_and_old:
6 ; CHECK-NEXT: br label %for.body.6
8 ; CHECK-LABEL: for.body.6:
9 ; CHECK-NEXT: %i.14 = phi i32 [ undef, %for.body.6 ], [ 0, %polly.merge_new_and_old ]
11 @recd = external hidden global [255 x i32], align 16
13 define void @rsdec_204(ptr %data_in) {
15 br i1 undef, label %if.then, label %for.body
17 if.then: ; preds = %entry
20 for.body: ; preds = %for.body, %entry
21 %i.05 = phi i32 [ %inc, %for.body ], [ 0, %entry ]
22 %0 = load i8, ptr %data_in, align 1
23 %conv = zext i8 %0 to i32
24 store i32 %conv, ptr @recd, align 4
25 %inc = add nuw nsw i32 %i.05, 1
26 br i1 false, label %for.body, label %for.body.6
28 for.body.6: ; preds = %for.body.6, %for.body
29 %i.14 = phi i32 [ undef, %for.body.6 ], [ 0, %for.body ]
30 br i1 undef, label %for.body.6, label %for.body.16
32 for.body.16: ; preds = %for.body.16, %for.body.6
33 br i1 undef, label %for.body.16, label %for.body.29
35 for.body.29: ; preds = %for.body.29, %for.body.16
36 br i1 undef, label %for.body.29, label %for.end.38
38 for.end.38: ; preds = %for.body.29