1 ; RUN: opt -S < %s -loop-unroll -block-freq | FileCheck %s
2 ; RUN: opt -S < %s -passes='require<opt-remark-emit>,loop-unroll,require<block-freq>' | FileCheck %s
3 ; Crasher from PR20987.
5 ; CHECK: define void @update_loop_info_in_subloops
9 ; CHECK: L.inner.latch:
12 ; CHECK: L.inner.latch.1:
15 define void @update_loop_info_in_subloops() {
20 %0 = phi i64 [ 1, %entry ], [ %1, %L.latch ]
24 br label %L.inner.latch
27 br i1 false, label %L.latch, label %L.inner
31 %2 = icmp eq i64 %1, 3
32 br i1 %2, label %exit, label %L