Skip to content

Commit

Permalink
[NFC][SimplifyCFG] Add test with an unreachable block with two identi…
Browse files Browse the repository at this point in the history
…cal successors
  • Loading branch information
LebedevRI committed Jan 7, 2021
1 parent 1f9b591 commit f8875c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions llvm/test/Transforms/SimplifyCFG/unreachable-matching-successor.ll
@@ -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
}

0 comments on commit f8875c3

Please sign in to comment.