105 lines · plain
1; RUN: opt -disable-output -passes='loop-mssa(licm),print<memoryssa>' < %s 2>&1 | FileCheck %s2target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"3target triple = "s390x-ibm-linux"4 5@g_248 = external dso_local local_unnamed_addr global i32, align 46@g_976 = external dso_local global i64, align 87@g_1087 = external dso_local global ptr, align 88 9; CHECK-LABEL: @f1(i1 %arg)10; CHECK: 5 = MemoryPhi(11; CHECK-NOT: 7 = MemoryPhi(12define dso_local fastcc void @f1(i1 %arg) unnamed_addr #0 {13label0:14 br i1 %arg, label %thread-pre-split.i.preheader, label %label515 16thread-pre-split.i.preheader: ; preds = %label017 br label %thread-pre-split.i18 19thread-pre-split.i.us: ; preds = %.critedge1.i.us20 br i1 %arg, label %.preheader.i.us.preheader, label %label221 22.preheader.i.us.preheader: ; preds = %thread-pre-split.i.us23 br label %.preheader.i.us24 25.preheader.i.us: ; preds = %._crit_edge.i.us, %.preheader.i.us.preheader26 br i1 %arg, label %.lr.ph.i.us, label %._crit_edge.i.us27 28.lr.ph.i.us: ; preds = %.preheader.i.us29 br label %label130 31label1: ; preds = %label1, %.lr.ph.i.us32 br i1 %arg, label %label1, label %._crit_edge.i.us33 34._crit_edge.i.us: ; preds = %label1, %.preheader.i.us35 br i1 %arg, label %.preheader.i.us, label %._crit_edge5.i.us36 37._crit_edge5.i.us: ; preds = %._crit_edge.i.us38 br label %label239 40label2: ; preds = %._crit_edge5.i.us, %thread-pre-split.i.us41 tail call void @foo16()42 br i1 %arg, label %.lr.ph8.i.us.preheader, label %label443 44.lr.ph8.i.us.preheader: ; preds = %label245 br label %.lr.ph8.i.us46 47.lr.ph8.i.us: ; preds = %.lr.ph8.i.us, %.lr.ph8.i.us.preheader48 %tmp3 = load volatile i64, ptr @g_976, align 849 br i1 %arg, label %.lr.ph8.i.us, label %._crit_edge9.i.us50 51._crit_edge9.i.us: ; preds = %.lr.ph8.i.us52 br label %label453 54label4: ; preds = %._crit_edge9.i.us, %label255 br i1 true, label %f9.exit, label %.critedge1.i.us56 57.critedge1.i.us: ; preds = %label458 br i1 %arg, label %thread-pre-split.i.us, label %f9.exit59 60label5: ; preds = %label061 unreachable62 63thread-pre-split.i: ; preds = %.critedge1.i, %thread-pre-split.i.preheader64 br i1 %arg, label %.preheader.i.preheader, label %.critedge1.i65 66.preheader.i.preheader: ; preds = %thread-pre-split.i67 br label %.preheader.i68 69.preheader.i: ; preds = %._crit_edge.i, %.preheader.i.preheader70 br i1 %arg, label %.lr.ph.i, label %._crit_edge.i71 72.lr.ph.i: ; preds = %.preheader.i73 br label %label674 75label6: ; preds = %label6, %.lr.ph.i76 br i1 %arg, label %label6, label %._crit_edge.i.loopexit77 78._crit_edge.i.loopexit: ; preds = %label679 br label %._crit_edge.i80 81._crit_edge.i: ; preds = %._crit_edge.i.loopexit, %.preheader.i82 br i1 %arg, label %.preheader.i, label %._crit_edge5.i83 84._crit_edge5.i: ; preds = %._crit_edge.i85 br label %.critedge1.i86 87.critedge1.i: ; preds = %._crit_edge5.i, %thread-pre-split.i88 %tmp7 = load i32, ptr @g_248, align 489 %tmp8 = xor i32 %tmp7, 5598790 store i32 %tmp8, ptr @g_248, align 491 br i1 %arg, label %thread-pre-split.i, label %f9.exit.loopexit92 93f9.exit.loopexit: ; preds = %.critedge1.i94 br label %f9.exit95 96f9.exit: ; preds = %f9.exit.loopexit, %.critedge1.i.us, %label497 %tmp9 = load volatile ptr, ptr @g_1087, align 898 ret void99}100 101declare dso_local void @foo16() local_unnamed_addr #1102 103attributes #0 = { "target-features"="+transactional-execution,+vector" }104attributes #1 = { "use-soft-float"="false" }105