1 ; RUN: opt %loadPolly -polly-codegen -verify-dom-info -disable-output < %s
3 ; Verify that the DominatorTree is preserved correctly for the inserted
4 ; %polly.stmt.exit.exit block, which serves as new exit block for the generated
5 ; subregion. In particulat, it must be dominated by %polly.stmt.subregion.enter,
6 ; the generated subregion's entry block.
8 define void @func(i32 %n, ptr noalias nonnull %A) {
13 %i = phi i32 [0, %entry], [%i.inc, %loop.inc]
14 %i.cmp = icmp slt i32 %i, %n
15 br i1 %i.cmp, label %body, label %return
18 %skipcond = icmp slt i32 %i, 5
19 br i1 %skipcond, label %subregion.enter, label %subregion.skip
26 %cond = icmp eq i32 %sqr, 0
28 br i1 %cond, label %subregion.true, label %subregion.false
40 %i.inc = add nuw nsw i32 %i, 1