xref: /llvm-project/llvm/test/Transforms/LoopFusion/undominated_loops.ll (revision 7f15907acc90284706310843b6a712641b00bf1d)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -passes=loop-fusion -S | FileCheck %s
3define void @test_long_1() {
4; CHECK-LABEL: @test_long_1(
5; CHECK-NEXT:  entry:
6; CHECK-NEXT:    br i1 true, label [[FOR_BODY6_PREHEADER:%.*]], label [[ENTRY_VECTOR_BODY_CRIT_EDGE:%.*]]
7; CHECK:       entry.vector.body_crit_edge:
8; CHECK-NEXT:    br label [[VECTOR_BODY:%.*]]
9; CHECK:       vector.body:
10; CHECK-NEXT:    br i1 true, label [[VECTOR_BODY_FOR_COND_CLEANUP5_CRIT_EDGE:%.*]], label [[VECTOR_BODY]]
11; CHECK:       vector.body.for.cond.cleanup5_crit_edge:
12; CHECK-NEXT:    br label [[FOR_COND_CLEANUP5:%.*]]
13; CHECK:       for.body6.preheader:
14; CHECK-NEXT:    br label [[FOR_COND_CLEANUP5]]
15; CHECK:       for.cond.cleanup5:
16; CHECK-NEXT:    br i1 true, label [[FOR_BODY17_PREHEADER:%.*]], label [[FOR_COND_CLEANUP5_VECTOR_BODY23_CRIT_EDGE:%.*]]
17; CHECK:       for.cond.cleanup5.vector.body23_crit_edge:
18; CHECK-NEXT:    br label [[VECTOR_BODY23:%.*]]
19; CHECK:       vector.body23:
20; CHECK-NEXT:    br i1 true, label [[MIDDLE_BLOCK15:%.*]], label [[VECTOR_BODY23]]
21; CHECK:       middle.block15:
22; CHECK-NEXT:    br label [[ENTRY_VECTOR_BODY_CRIT_EDGE]]
23; CHECK:       for.body17.preheader:
24; CHECK-NEXT:    unreachable
25;
26entry:
27  br i1 true, label %for.body6.preheader, label %entry.vector.body_crit_edge
28
29entry.vector.body_crit_edge:                      ; preds = %entry
30  br label %vector.body
31
32vector.body:                                      ; preds = %entry.vector.body_crit_edge, %vector.body
33  br i1 true, label %vector.body.for.cond.cleanup5_crit_edge, label %vector.body
34
35vector.body.for.cond.cleanup5_crit_edge:          ; preds = %vector.body
36  br label %for.cond.cleanup5
37
38for.body6.preheader:                              ; preds = %entry
39  br label %for.cond.cleanup5
40
41for.cond.cleanup5:                                ; preds = %vector.body.for.cond.cleanup5_crit_edge, %for.body6.preheader
42  br i1 true, label %for.body17.preheader, label %for.cond.cleanup5.vector.body23_crit_edge
43
44for.cond.cleanup5.vector.body23_crit_edge:        ; preds = %for.cond.cleanup5
45  br label %vector.body23
46
47vector.body23:                                    ; preds = %for.cond.cleanup5.vector.body23_crit_edge, %vector.body23
48  br i1 true, label %middle.block15, label %vector.body23
49
50middle.block15:                                   ; preds = %vector.body23
51  br label %entry.vector.body_crit_edge
52
53for.body17.preheader:                             ; preds = %for.cond.cleanup5
54  unreachable
55}
56