1 ; RUN: opt < %s -passes=simplifycfg -S | FileCheck %s
3 ; Ensure that the loop metadata is preserved when converting the
4 ; conditional branch to an unconditional.
6 define void @commondest_loopid(i1 %T) {
7 ; CHECK-LABEL: @commondest_loopid(
9 ; CHECK: !0 = distinct !{!0, !1}
10 ; CHECK: !1 = !{!"loopprop"}
15 br i1 %T, label %loop, label %loop, !llvm.loop !0
18 !0 = distinct !{!0, !1}