1; RUN: opt %loadPolly -tbaa -polly-codegen -polly-allow-differing-element-types -disable-output %s 2; 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4 5%struct.hoge = type { %struct.widget*, %struct.barney*, %struct.foo*, i32, i32, %struct.wibble*, i32, i32, i32, i32, double, i32, i32, i32, %struct.foo.1*, [4 x %struct.hoge.2*], [4 x %struct.blam*], [4 x %struct.blam*], [16 x i8], [16 x i8], [16 x i8], i32, %struct.barney.3*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i16, i16, i32, i32, i32, i32, i32, i32, i32, [4 x %struct.foo.1*], i32, i32, i32, [10 x i32], i32, i32, i32, i32, %struct.foo.4*, %struct.wombat.5*, %struct.blam.6*, %struct.foo.7*, %struct.bar*, %struct.wibble.8*, %struct.barney.9*, %struct.hoge.10*, %struct.bar.11* } 6%struct.widget = type { void (%struct.quux*)*, void (%struct.quux*, i32)*, void (%struct.quux*)*, void (%struct.quux*, i8*)*, void (%struct.quux*)*, i32, %struct.hoge.0, i32, i64, i8**, i32, i8**, i32, i32 } 7%struct.quux = type { %struct.widget*, %struct.barney*, %struct.foo*, i32, i32 } 8%struct.hoge.0 = type { [8 x i32], [48 x i8] } 9%struct.barney = type { i8* (%struct.quux*, i32, i64)*, i8* (%struct.quux*, i32, i64)*, i8** (%struct.quux*, i32, i32, i32)*, [64 x i16]** (%struct.quux*, i32, i32, i32)*, %struct.ham* (%struct.quux*, i32, i32, i32, i32, i32)*, %struct.wombat* (%struct.quux*, i32, i32, i32, i32, i32)*, {}*, i8** (%struct.quux*, %struct.ham*, i32, i32, i32)*, [64 x i16]** (%struct.quux*, %struct.wombat*, i32, i32, i32)*, void (%struct.quux*, i32)*, {}*, i64 } 10%struct.ham = type opaque 11%struct.wombat = type opaque 12%struct.foo = type { {}*, i64, i64, i32, i32 } 13%struct.wibble = type { i8*, i64, void (%struct.hoge*)*, i32 (%struct.hoge*)*, void (%struct.hoge*)* } 14%struct.foo.1 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.hoge.2*, i8* } 15%struct.hoge.2 = type { [64 x i16], i32 } 16%struct.blam = type { [17 x i8], [256 x i8], i32 } 17%struct.barney.3 = type { i32, [4 x i32], i32, i32, i32, i32 } 18%struct.foo.4 = type { void (%struct.hoge*)*, void (%struct.hoge*)*, void (%struct.hoge*)*, i32, i32 } 19%struct.wombat.5 = type { void (%struct.hoge*, i32)*, void (%struct.hoge*, i8**, i32*, i32)* } 20%struct.blam.6 = type { void (%struct.hoge*, i32)*, void (%struct.hoge*, i8**, i32*, i32, i8***, i32*, i32)* } 21%struct.foo.7 = type { void (%struct.hoge*, i32)*, i32 (%struct.hoge*, i8***)* } 22%struct.bar = type { void (%struct.hoge*, i32, i8*, i32)*, void (%struct.hoge*)*, void (%struct.hoge*)*, void (%struct.hoge*)*, void (%struct.hoge*)*, void (%struct.hoge*)* } 23%struct.wibble.8 = type { void (%struct.hoge*)*, void (%struct.hoge*, i8**, i8***, i32, i32)* } 24%struct.barney.9 = type { void (%struct.hoge*)*, void (%struct.hoge*, i8***, i32, i8***, i32)*, i32 } 25%struct.hoge.10 = type { void (%struct.hoge*)*, void (%struct.hoge*, %struct.foo.1*, i8**, [64 x i16]*, i32, i32, i32)* } 26%struct.bar.11 = type { {}*, i32 (%struct.hoge*, [64 x i16]**)*, void (%struct.hoge*)* } 27%struct.foo.12 = type { %struct.foo.4, i32, i32, i32, i32 } 28 29; Function Attrs: nounwind uwtable 30define void @eggs(%struct.hoge* %arg) #0 { 31bb: 32 %tmp = load %struct.barney.3*, %struct.barney.3** undef, align 8, !tbaa !1 33 br label %bb5 34 35bb5: ; preds = %bb 36 %tmp6 = getelementptr inbounds %struct.hoge, %struct.hoge* %arg, i32 0, i32 51 37 %tmp7 = load %struct.foo.4*, %struct.foo.4** %tmp6, align 8, !tbaa !9 38 %tmp8 = bitcast %struct.foo.4* %tmp7 to %struct.foo.12* 39 %tmp9 = getelementptr inbounds %struct.foo.12, %struct.foo.12* %tmp8, i32 0, i32 4 40 %tmp10 = load i32, i32* %tmp9, align 4, !tbaa !10 41 %tmp11 = getelementptr inbounds %struct.barney.3, %struct.barney.3* %tmp, i64 0 42 %tmp12 = getelementptr inbounds %struct.barney.3, %struct.barney.3* %tmp11, i32 0, i32 0 43 %tmp151 = load i32, i32* %tmp12, align 4, !tbaa !13 44 %tmp162 = icmp slt i32 0, %tmp151 45 br i1 %tmp162, label %bb17.lr.ph, label %bb22 46 47bb17.lr.ph: ; preds = %bb5 48 br label %bb17 49 50bb17: ; preds = %bb17.lr.ph, %bb17 51 %tmp143 = phi i32 [ 0, %bb17.lr.ph ], [ %tmp21, %bb17 ] 52 %tmp18 = sext i32 %tmp143 to i64 53 %tmp19 = getelementptr inbounds %struct.hoge, %struct.hoge* %arg, i32 0, i32 42 54 %tmp20 = getelementptr inbounds [4 x %struct.foo.1*], [4 x %struct.foo.1*]* %tmp19, i64 0, i64 %tmp18 55 store %struct.foo.1* undef, %struct.foo.1** %tmp20, align 8, !tbaa !15 56 %tmp21 = add nsw i32 %tmp143, 1 57 %tmp15 = load i32, i32* %tmp12, align 4, !tbaa !13 58 %tmp16 = icmp slt i32 %tmp21, %tmp15 59 br i1 %tmp16, label %bb17, label %bb13.bb22_crit_edge 60 61bb13.bb22_crit_edge: ; preds = %bb17 62 br label %bb22 63 64bb22: ; preds = %bb13.bb22_crit_edge, %bb5 65 ret void 66} 67 68attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" } 69 70!llvm.ident = !{!0} 71 72!0 = !{!"clang version 3.9.0 (trunk 259751) (llvm/trunk 259869)"} 73!1 = !{!2, !3, i64 240} 74!2 = !{!"jpeg_compress_struct", !3, i64 0, !3, i64 8, !3, i64 16, !6, i64 24, !6, i64 28, !3, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !4, i64 52, !7, i64 56, !6, i64 64, !6, i64 68, !4, i64 72, !3, i64 80, !4, i64 88, !4, i64 120, !4, i64 152, !4, i64 184, !4, i64 200, !4, i64 216, !6, i64 232, !3, i64 240, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !4, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !4, i64 284, !8, i64 286, !8, i64 288, !6, i64 292, !6, i64 296, !6, i64 300, !6, i64 304, !6, i64 308, !6, i64 312, !6, i64 316, !4, i64 320, !6, i64 352, !6, i64 356, !6, i64 360, !4, i64 364, !6, i64 404, !6, i64 408, !6, i64 412, !6, i64 416, !3, i64 424, !3, i64 432, !3, i64 440, !3, i64 448, !3, i64 456, !3, i64 464, !3, i64 472, !3, i64 480, !3, i64 488} 75!3 = !{!"any pointer", !4, i64 0} 76!4 = !{!"omnipotent char", !5, i64 0} 77!5 = !{!"Simple C/C++ TBAA"} 78!6 = !{!"int", !4, i64 0} 79!7 = !{!"double", !4, i64 0} 80!8 = !{!"short", !4, i64 0} 81!9 = !{!2, !3, i64 424} 82!10 = !{!11, !6, i64 44} 83!11 = !{!"", !12, i64 0, !4, i64 32, !6, i64 36, !6, i64 40, !6, i64 44} 84!12 = !{!"jpeg_comp_master", !3, i64 0, !3, i64 8, !3, i64 16, !6, i64 24, !6, i64 28} 85!13 = !{!14, !6, i64 0} 86!14 = !{!"", !6, i64 0, !4, i64 4, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32} 87!15 = !{!3, !3, i64 0} 88