mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
11d48d6932
Upgrade to use new Tcl exec based test harness. This exposes 3 bugs that were previously not being reported: test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll test/Transforms/GlobalOpt/memset.ll test/Transforms/IndVarsSimplify/exit_value_tests.llx llvm-svn: 36065
22 lines
460 B
LLVM
22 lines
460 B
LLVM
; This test checks to make sure that 'br X, Dest, Dest' is folded into
|
|
; 'br Dest'
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
|
|
; RUN: not grep {br bool %c2}
|
|
|
|
declare void %noop()
|
|
|
|
int %test(bool %c1, bool %c2) {
|
|
call void %noop()
|
|
br bool %c1, label %A, label %Y
|
|
A:
|
|
call void %noop()
|
|
br bool %c2, label %X, label %X ; Can be converted to unconditional br
|
|
X:
|
|
call void %noop()
|
|
ret int 0
|
|
Y:
|
|
call void %noop()
|
|
br label %X
|
|
}
|