1 ; RUN: opt -S < %s -passes='require<opt-remark-emit>,loop-unroll,require<block-freq>' | FileCheck %s
2 ; Crasher from PR20987.
4 ; CHECK: define void @update_loop_info_in_subloops
8 ; CHECK: L.inner.latch:
11 ; CHECK: L.inner.latch.1:
14 define void @update_loop_info_in_subloops() {
19 %0 = phi i64 [ 1, %entry ], [ %1, %L.latch ]
23 br label %L.inner.latch
26 br i1 false, label %L.latch, label %L.inner
30 %2 = icmp eq i64 %1, 3
31 br i1 %2, label %exit, label %L