[NFC][SimplifyCFG] Add test with an unreachable block with two identical successors

This commit is contained in:
Roman Lebedev 2021-01-07 23:23:36 +03:00
parent 1f9b591ee6
commit f8875c313c
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
define void @fn(i1 %c) {
; CHECK-LABEL: @fn(
; CHECK-NEXT: entry:
; CHECK-NEXT: ret void
;
entry:
ret void
unreachable_bb0:
br i1 %c, label %unreachable_bb1, label %unreachable_bb1
unreachable_bb1:
br label %unreachable_bb0
}