1; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
2
3; CHECK-LABEL: polly.merge_new_and_old:
4; CHECK-NEXT: %tmp7.ph.merge = phi %struct.wibble* [ %tmp7.ph.final_reload, %polly.exiting ], [ %tmp7.ph, %bb6.region_exiting ]
5
6; CHECK-LABEL: polly.stmt.bb3:
7; CHECK-NEXT: store %struct.wibble* %tmp2, %struct.wibble** %tmp7.s2a
8
9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10
11%struct.blam = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
12%struct.wibble = type { i32, %struct.wibble*, %struct.wibble* }
13
14@global = external global %struct.blam*, align 8
15
16; Function Attrs: nounwind uwtable
17define void @wobble() #0 {
18bb:
19  br label %bb1
20
21bb1:                                              ; preds = %bb6, %bb
22  %tmp2 = phi %struct.wibble* [ %tmp7, %bb6 ], [ undef, %bb ]
23  %tmp = load %struct.blam*, %struct.blam** @global, align 8, !tbaa !1
24  br label %bb3
25
26bb3:                                              ; preds = %bb1
27  %tmp4 = getelementptr inbounds %struct.blam, %struct.blam* %tmp, i64 0, i32 1
28  br i1 false, label %bb6, label %bb5
29
30bb5:                                              ; preds = %bb3
31  br label %bb6
32
33bb6:                                              ; preds = %bb5, %bb3
34  %tmp7 = phi %struct.wibble* [ %tmp2, %bb3 ], [ undef, %bb5 ]
35  br i1 undef, label %bb8, label %bb1
36
37bb8:                                              ; preds = %bb6
38  br label %bb9
39
40bb9:                                              ; preds = %bb8
41  unreachable
42}
43
44attributes #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"="+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
45
46!llvm.ident = !{!0}
47
48!0 = !{!"clang version 3.8.0 (trunk 250010) (llvm/trunk 250018)"}
49!1 = !{!2, !2, i64 0}
50!2 = !{!"any pointer", !3, i64 0}
51!3 = !{!"omnipotent char", !4, i64 0}
52!4 = !{!"Simple C/C++ TBAA"}
53