Home | History | Annotate | Download | only in NewGVN
      1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
      2 ; ModuleID = 'bugpoint-reduced-simplified.bc'
      3 ; RUN: opt < %s -newgvn -S | FileCheck %s
      4 source_filename = "bugpoint-output-e4c7d0f.bc"
      5 
      6 ;  Make sure we still properly resolve phi cycles when they involve predicateinfo copies of phis.
      7 define void @hoge() local_unnamed_addr #0 {
      8 ; CHECK-LABEL: @hoge(
      9 ; CHECK-NEXT:  bb:
     10 ; CHECK-NEXT:    br i1 undef, label [[BB6:%.*]], label [[BB1:%.*]]
     11 ; CHECK:       bb1:
     12 ; CHECK-NEXT:    br label [[BB6]]
     13 ; CHECK:       bb2:
     14 ; CHECK-NEXT:    br i1 true, label [[BB3:%.*]], label [[BB6]]
     15 ; CHECK:       bb3:
     16 ; CHECK-NEXT:    br label [[BB4:%.*]]
     17 ; CHECK:       bb4:
     18 ; CHECK-NEXT:    br i1 undef, label [[BB2:%.*]], label [[BB6]]
     19 ; CHECK:       bb6:
     20 ; CHECK-NEXT:    br label [[BB4]]
     21 ;
     22 bb:
     23   br i1 undef, label %bb6, label %bb1
     24 
     25 bb1:                                              ; preds = %bb
     26   br label %bb6
     27 
     28 bb2:                                              ; preds = %bb4
     29   %tmp = icmp slt i8 %tmp5, 7
     30   br i1 %tmp, label %bb3, label %bb6
     31 
     32 bb3:                                              ; preds = %bb2
     33   br label %bb4
     34 
     35 bb4:                                              ; preds = %bb6, %bb3
     36   %tmp5 = phi i8 [ %tmp5, %bb3 ], [ %tmp7, %bb6 ]
     37   br i1 undef, label %bb2, label %bb6
     38 
     39 bb6:                                              ; preds = %bb4, %bb2, %bb1, %bb
     40   %tmp7 = phi i8 [ %tmp5, %bb4 ], [ %tmp5, %bb2 ], [ 5, %bb1 ], [ undef, %bb ]
     41   br label %bb4
     42 }
     43 
     44 attributes #0 = { norecurse noreturn nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
     45 
     46 !llvm.ident = !{!0}
     47 
     48 !0 = !{!"clang version 6.0.0 (http://llvm.org/git/clang.git e649d902285b23af8ba58cb92a739f3bad2723df) (/Users/dannyb/sources/llvm-clean 0abfd30028cbb294ff2c2dd5e2df4ec3fdb6c591)"}
     49