1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
3 ; RUN: opt -S -passes='ipsccp,function(verify<domtree>)' < %s | FileCheck %s
5 ; DTU should not crash.
10 ; CHECK-NEXT: br label [[FOR_BODY:%.*]]
12 ; CHECK-NEXT: br label [[IF_THEN2:%.*]]
14 ; CHECK-NEXT: br label [[FOR_INC:%.*]]
16 ; CHECK-NEXT: unreachable
21 for.body: ; preds = %entry
22 br i1 true, label %if.then2, label %if.else
24 if.then2: ; preds = %for.body
27 if.else: ; preds = %for.body
28 br i1 undef, label %lor.rhs, label %if.then19.critedge
30 lor.rhs: ; preds = %if.else
31 br i1 undef, label %if.then19, label %for.inc
33 if.then19.critedge: ; preds = %if.else
36 if.then19: ; preds = %if.then19.critedge, %lor.rhs
39 for.inc: ; preds = %lor.rhs, %if.then2