1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=loop-fusion -S | FileCheck %s
3 define void @test_long_1() {
4 ; CHECK-LABEL: @test_long_1(
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:%.*]]
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
27 br i1 true, label %for.body6.preheader, label %entry.vector.body_crit_edge
29 entry.vector.body_crit_edge: ; preds = %entry
32 vector.body: ; preds = %entry.vector.body_crit_edge, %vector.body
33 br i1 true, label %vector.body.for.cond.cleanup5_crit_edge, label %vector.body
35 vector.body.for.cond.cleanup5_crit_edge: ; preds = %vector.body
36 br label %for.cond.cleanup5
38 for.body6.preheader: ; preds = %entry
39 br label %for.cond.cleanup5
41 for.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
44 for.cond.cleanup5.vector.body23_crit_edge: ; preds = %for.cond.cleanup5
45 br label %vector.body23
47 vector.body23: ; preds = %for.cond.cleanup5.vector.body23_crit_edge, %vector.body23
48 br i1 true, label %middle.block15, label %vector.body23
50 middle.block15: ; preds = %vector.body23
51 br label %entry.vector.body_crit_edge
53 for.body17.preheader: ; preds = %for.cond.cleanup5