1 ; RUN: opt %loadPolly -polly-scops -disable-output < %s
3 ; Check we do not crash.
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7 %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064 = type { i8, i8, i16, i32, [32 x i8], [4 x i8] }
9 ; Function Attrs: nounwind uwtable
10 define void @S_cl_or(%struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064* %cl, %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064* %or_with) #0 {
12 %flags = getelementptr inbounds %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064, %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064* %or_with, i64 0, i32 0
13 %0 = load i8, i8* %flags, align 4, !tbaa !1
14 %conv = zext i8 %0 to i32
15 %1 = load i8, i8* undef, align 4, !tbaa !1
16 br label %land.lhs.true35
18 land.lhs.true35: ; preds = %entry
19 %and38 = and i32 %conv, 2
20 %tobool39 = icmp ne i32 %and38, 0
22 %tobool43 = icmp eq i8 %and42, 0
23 %or.cond45 = and i1 %tobool39, %tobool43
24 br i1 %or.cond45, label %if.end91, label %for.body49
26 for.body49: ; preds = %land.lhs.true35
27 %2 = load i8, i8* %flags, align 4, !tbaa !1
29 %tobool66 = icmp eq i8 %and65, 0
30 br i1 %tobool66, label %if.end91, label %for.body71
32 for.body71: ; preds = %for.body71, %for.body49
33 %arrayidx77 = getelementptr inbounds %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064, %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064* %cl, i64 0, i32 5, i64 0
34 store i8 undef, i8* %arrayidx77, align 1, !tbaa !7
35 br i1 false, label %for.body71, label %if.end91
37 if.end91: ; preds = %for.body71, %for.body49, %land.lhs.true35
41 attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
45 !0 = !{!"clang version 3.9.0 (http://llvm.org/git/clang.git af4db76e059c1a3f4a7f437001051ccebc8a50fe)"}
47 !2 = !{!"regnode_charclass_class", !3, i64 0, !3, i64 1, !5, i64 2, !6, i64 4, !3, i64 8, !3, i64 40}
48 !3 = !{!"omnipotent char", !4, i64 0}
49 !4 = !{!"Simple C/C++ TBAA"}
50 !5 = !{!"short", !3, i64 0}
51 !6 = !{!"int", !3, i64 0}