1 ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
3 ; Check that we can get rid of empty block leading to header
4 ; if it does not introduce new edge.
5 define i32 @test(i32 %c) {
9 %i = phi i32 [0, %entry], [%i.1, %backedge]
11 %cmp = icmp slt i32 %i.1, %c
12 br i1 %cmp, label %backedge, label %exit
13 ; CHECK-NOT: backedge: