1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Testcase for r279022

llvm-svn: 279031
This commit is contained in:
Matthias Braun 2016-08-18 02:21:54 +00:00
parent 1168461229
commit 55e3136679

View File

@ -0,0 +1,24 @@
; RUN: llc -o - %s | FileCheck %s
target triple = "x86_64--"
; Make sure we do not crash in tail duplication when finding no successor of a
; block.
; CHECK-LABEL: func:
; CHECK: testb
; CEHCK: je
; CHECK: retq
; CHECK: jmp
define hidden void @func() {
entry:
br i1 undef, label %for.cond.cleanup, label %while.cond.preheader
while.cond.preheader:
br label %while.cond
for.cond.cleanup:
ret void
while.cond:
%cmp.i202 = icmp eq i8* undef, undef
br i1 %cmp.i202, label %while.cond.preheader, label %while.cond
}