1; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s 2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-unknown-linux-gnu" 5 6; CHECK-LABEL: polly.merge_new_and_old: 7; CHECK-NEXT: %_s.sroa.343.0.ph5161118.ph.merge = phi i32 [ %_s.sroa.343.0.ph5161118.ph.final_reload, %polly.exiting ], [ %_s.sroa.343.0.ph516.lcssa2357, %for.cond.981.region_exiting ] 8 9; CHECK-LABEL: for.cond.981: 10; CHECK-NEXT: %_s.sroa.343.0.ph5161118 = phi i32 [ undef, %for.cond ], [ %_s.sroa.343.0.ph5161118.ph.merge, %polly.merge_new_and_old ] 11 12; CHECK-LABEL: polly.exiting: 13; CHECK-NEXT: %_s.sroa.343.0.ph5161118.ph.final_reload = load i32, i32* %_s.sroa.343.0.ph5161118.s2a 14 15; Function Attrs: nounwind uwtable 16define void @lzmaDecode() #0 { 17entry: 18 br label %for.cond.outer.outer.outer 19 20for.cond: ; preds = %for.cond.outer.outer.outer 21 switch i32 undef, label %cleanup.1072 [ 22 i32 23, label %for.cond.981 23 i32 4, label %_LZMA_C_RDBD 24 i32 19, label %sw.bb.956 25 i32 26, label %saveStateAndReturn 26 ] 27 28_LZMA_C_RDBD: ; preds = %for.cond 29 ret void 30 31sw.bb.956: ; preds = %for.cond 32 %_s.sroa.294.0.ph519.lcssa2388 = phi i32 [ undef, %for.cond ] 33 %_s.sroa.343.0.ph516.lcssa2357 = phi i32 [ undef, %for.cond ] 34 %cmp958 = icmp eq i32 %_s.sroa.294.0.ph519.lcssa2388, 0 35 br i1 %cmp958, label %if.then.960, label %if.else.969 36 37if.then.960: ; preds = %sw.bb.956 38 br label %for.cond.981 39 40if.else.969: ; preds = %sw.bb.956 41 br label %for.cond.981 42 43for.cond.981: ; preds = %if.else.969, %if.then.960, %for.cond 44 %_s.sroa.343.0.ph5161118 = phi i32 [ %_s.sroa.343.0.ph516.lcssa2357, %if.then.960 ], [ %_s.sroa.343.0.ph516.lcssa2357, %if.else.969 ], [ undef, %for.cond ] 45 ret void 46 47for.cond.outer.outer.outer: ; preds = %entry 48 br label %for.cond 49 50saveStateAndReturn: ; preds = %for.cond 51 ret void 52 53cleanup.1072: ; preds = %for.cond 54 ret void 55} 56 57attributes #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" } 58 59!llvm.ident = !{!0} 60 61!0 = !{!"clang version 3.8.0 (trunk 250010) (llvm/trunk 250018)"} 62