2015-10-25 03:02:01 +08:00
|
|
|
; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
|
2015-10-25 03:01:09 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: polly.merge_new_and_old:
|
2015-12-09 19:38:22 +08:00
|
|
|
; CHECK-NEXT: %tmp7.ph.merge = phi %struct.wibble* [ %tmp7.ph.final_reload, %polly.exiting ], [ %tmp7.ph, %bb6.region_exiting ]
|
2015-10-25 03:01:09 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: polly.stmt.bb3:
|
2016-01-28 06:51:56 +08:00
|
|
|
; CHECK-NEXT: store %struct.wibble* %tmp2, %struct.wibble** %tmp7.s2a
|
2015-10-25 03:01:09 +08:00
|
|
|
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
|
|
|
|
%struct.blam = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
|
|
|
|
%struct.wibble = type { i32, %struct.wibble*, %struct.wibble* }
|
|
|
|
|
|
|
|
@global = external global %struct.blam*, align 8
|
|
|
|
|
|
|
|
; Function Attrs: nounwind uwtable
|
|
|
|
define void @wobble() #0 {
|
|
|
|
bb:
|
|
|
|
br label %bb1
|
|
|
|
|
|
|
|
bb1: ; preds = %bb6, %bb
|
|
|
|
%tmp2 = phi %struct.wibble* [ %tmp7, %bb6 ], [ undef, %bb ]
|
|
|
|
%tmp = load %struct.blam*, %struct.blam** @global, align 8, !tbaa !1
|
|
|
|
br label %bb3
|
|
|
|
|
|
|
|
bb3: ; preds = %bb1
|
|
|
|
%tmp4 = getelementptr inbounds %struct.blam, %struct.blam* %tmp, i64 0, i32 1
|
|
|
|
br i1 false, label %bb6, label %bb5
|
|
|
|
|
|
|
|
bb5: ; preds = %bb3
|
|
|
|
br label %bb6
|
|
|
|
|
|
|
|
bb6: ; preds = %bb5, %bb3
|
|
|
|
%tmp7 = phi %struct.wibble* [ %tmp2, %bb3 ], [ undef, %bb5 ]
|
|
|
|
br i1 undef, label %bb8, label %bb1
|
|
|
|
|
|
|
|
bb8: ; preds = %bb6
|
|
|
|
br label %bb9
|
|
|
|
|
|
|
|
bb9: ; preds = %bb8
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
2019-12-25 08:11:33 +08:00
|
|
|
attributes #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" }
|
2015-10-25 03:01:09 +08:00
|
|
|
|
|
|
|
!llvm.ident = !{!0}
|
|
|
|
|
|
|
|
!0 = !{!"clang version 3.8.0 (trunk 250010) (llvm/trunk 250018)"}
|
|
|
|
!1 = !{!2, !2, i64 0}
|
|
|
|
!2 = !{!"any pointer", !3, i64 0}
|
|
|
|
!3 = !{!"omnipotent char", !4, i64 0}
|
|
|
|
!4 = !{!"Simple C/C++ TBAA"}
|