1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=newgvn %s | FileCheck %s
4 @a = external global i32
8 ; CHECK-NEXT: br i1 false, label [[C:%.*]], label [[WHILE_D:%.*]]
10 ; CHECK-NEXT: br label [[F:%.*]]
12 ; CHECK-NEXT: br i1 undef, label [[IF_E:%.*]], label [[C]]
14 ; CHECK-NEXT: br i1 undef, label [[IF_G:%.*]], label [[IF_E]]
16 ; CHECK-NEXT: store i32 undef, ptr @a, align 4
17 ; CHECK-NEXT: br label [[WHILE_D]]
19 ; CHECK-NEXT: br label [[F]]
21 br i1 false, label %c, label %while.d
23 while.d: ; preds = %if.g, %0
26 f: ; preds = %if.e, %while.d
27 br i1 undef, label %if.e, label %c
30 br i1 undef, label %if.g, label %if.e
33 store i32 undef, ptr @a
36 if.e: ; preds = %c, %f