1 ; RUN: opt -S -o - -structurizecfg < %s | FileCheck %s
3 ; CHECK-LABEL: @no_branch_to_entry_undef(
5 ; CHECK-NEXT: br label %entry.orig
6 define void @no_branch_to_entry_undef(i32 addrspace(1)* %out) {
8 br i1 undef, label %for.end, label %for.body
10 for.body: ; preds = %entry, %for.body
11 store i32 999, i32 addrspace(1)* %out, align 4
14 for.end: ; preds = %Flow
18 ; CHECK-LABEL: @no_branch_to_entry_true(
20 ; CHECK-NEXT: br label %entry.orig
21 define void @no_branch_to_entry_true(i32 addrspace(1)* %out) {
23 br i1 true, label %for.end, label %for.body
25 for.body: ; preds = %entry, %for.body
26 store i32 999, i32 addrspace(1)* %out, align 4
29 for.end: ; preds = %Flow