diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
commit | 67c32a98315f785a9ec9d531c1f571a0196c7463 (patch) | |
tree | 4abb9cbeecc7901726dd0b4a37369596c852e9ef /test/CodeGen/Generic/empty-phi.ll | |
parent | 9f61947910e6ab40de38e6b4034751ef1513200f (diff) |
Diffstat (limited to 'test/CodeGen/Generic/empty-phi.ll')
-rw-r--r-- | test/CodeGen/Generic/empty-phi.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/empty-phi.ll b/test/CodeGen/Generic/empty-phi.ll new file mode 100644 index 0000000000000..8d5f3b96941cf --- /dev/null +++ b/test/CodeGen/Generic/empty-phi.ll @@ -0,0 +1,19 @@ +; RUN: llc < %s + +define void @f() { +entry: + br label %bb1 + +bb1: + %0 = phi [0 x { i8*, i64, i64 }] [ %load, %bb2 ], [ undef, %entry ] + store [0 x { i8*, i64, i64 }] %0, [0 x { i8*, i64, i64 }]* undef, align 8 + %1 = icmp eq i64 undef, 0 + br i1 %1, label %bb2, label %bb3 + +bb2: + %load = load [0 x { i8*, i64, i64 }]* undef, align 8 + br label %bb1 + +bb3: + ret void +} |