1 ; RUN: opt %loadPolly -polly-codegen -disable-output < %s
3 ; This caused dominance problems at some point as we do bail out during
4 ; code generation. Just verify it runs through.
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 %struct.hashheader.0.5.10.165.180.185 = type { i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, [5 x i8], [13 x i8], i8, i8, i8, [228 x i16], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [228 x i8], [128 x i8], [100 x [11 x i8]], [100 x i32], [100 x i32], i16 }
10 @hashheader = external global %struct.hashheader.0.5.10.165.180.185, align 4
12 ; Function Attrs: nounwind uwtable
13 define void @strtoichar(ptr %in) #0 {
15 br i1 undef, label %land.rhs, label %for.end
17 land.rhs: ; preds = %for.inc, %entry
18 %in.addr.012 = phi ptr [ undef, %for.inc ], [ %in, %entry ]
19 %0 = load i8, ptr %in.addr.012, align 1
20 br i1 undef, label %for.end, label %for.body
22 for.body: ; preds = %land.rhs
23 %idxprom = zext i8 %0 to i64
24 %arrayidx = getelementptr inbounds %struct.hashheader.0.5.10.165.180.185, ptr @hashheader, i64 0, i32 27, i64 %idxprom
25 %1 = load i8, ptr %arrayidx, align 1
26 %tobool = icmp eq i8 %1, 0
27 br i1 %tobool, label %if.else, label %land.rhs.7
29 land.rhs.7: ; preds = %for.body
30 tail call void @stringcharlen()
31 br i1 undef, label %if.then, label %if.else
33 if.then: ; preds = %land.rhs.7
36 if.else: ; preds = %land.rhs.7, %for.body
37 %2 = load i8, ptr %in.addr.012, align 1
40 for.inc: ; preds = %if.else, %if.then
41 %len.1 = phi i32 [ 0, %if.else ], [ undef, %if.then ]
42 br i1 undef, label %land.rhs, label %for.end
44 for.end: ; preds = %for.inc, %land.rhs, %entry
48 ; Function Attrs: nounwind uwtable
49 declare void @stringcharlen() #0