1; RUN: opt %loadNPMPolly '-passes=print<polly-function-scops>' -disable-output < %s 2; 3; Check we do not crash. 4; 5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 6 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] } 8 9; Function Attrs: nounwind uwtable 10define void @S_cl_or(ptr %cl, ptr %or_with) #0 { 11entry: 12 %0 = load i8, ptr %or_with, align 4, !tbaa !1 13 %conv = zext i8 %0 to i32 14 %1 = load i8, ptr undef, align 4, !tbaa !1 15 br label %land.lhs.true35 16 17land.lhs.true35: ; preds = %entry 18 %and38 = and i32 %conv, 2 19 %tobool39 = icmp ne i32 %and38, 0 20 %and42 = and i8 %1, 2 21 %tobool43 = icmp eq i8 %and42, 0 22 %or.cond45 = and i1 %tobool39, %tobool43 23 br i1 %or.cond45, label %if.end91, label %for.body49 24 25for.body49: ; preds = %land.lhs.true35 26 %2 = load i8, ptr %or_with, align 4, !tbaa !1 27 %and65 = and i8 %2, 8 28 %tobool66 = icmp eq i8 %and65, 0 29 br i1 %tobool66, label %if.end91, label %for.body71 30 31for.body71: ; preds = %for.body71, %for.body49 32 %arrayidx77 = getelementptr inbounds %struct.regnode_charclass_class.2.42.654.690.726.870.978.1770.1806.1842.2166.2274.2382.2598.2814.3030.3064, ptr %cl, i64 0, i32 5, i64 0 33 store i8 undef, ptr %arrayidx77, align 1, !tbaa !7 34 br i1 false, label %for.body71, label %if.end91 35 36if.end91: ; preds = %for.body71, %for.body49, %land.lhs.true35 37 ret void 38} 39 40attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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" } 41 42!llvm.ident = !{!0} 43 44!0 = !{!"clang version 3.9.0"} 45!1 = !{!2, !3, i64 0} 46!2 = !{!"regnode_charclass_class", !3, i64 0, !3, i64 1, !5, i64 2, !6, i64 4, !3, i64 8, !3, i64 40} 47!3 = !{!"omnipotent char", !4, i64 0} 48!4 = !{!"Simple C/C++ TBAA"} 49!5 = !{!"short", !3, i64 0} 50!6 = !{!"int", !3, i64 0} 51!7 = !{!3, !3, i64 0} 52