• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -lcssa -disable-output
2target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3target triple = "x86_64-unknown-linux-gnu"
4
5; PR28608
6; Check that we don't crash on this test.
7
8define void @foo() {
9entry:
10  br label %bb1
11
12bb1:
13  br label %bb2
14
15bb2:
16  %x = phi i32 [ undef, %bb5 ], [ undef, %bb1 ]
17  br i1 undef, label %bb3, label %bb6
18
19bb3:
20  br i1 undef, label %bb5, label %bb4
21
22bb4:
23  br label %bb6
24
25bb5:
26  br label %bb2
27
28bb6:
29  br label %bb1
30
31exit:
32  %y = add i32 0, %x
33  ret void
34}
35
36