1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/Transforms/SimplifyCFG/InvokeEliminate.ll
Tanya Lattner 60b7b29981 Upgrade tests to not use llvm-upgrade.
llvm-svn: 48483
2008-03-18 03:45:45 +00:00

19 lines
561 B
LLVM

; This testcase checks to see if the simplifycfg pass is converting invoke
; instructions to call instructions if the handler just rethrows the exception.
; If this test is successful, the function should be reduced to 'call; ret'
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
; RUN: not egrep {\\(invoke\\)|\\(br\\)}
declare void @bar()
define i32 @test() {
invoke void @bar( )
to label %Ok unwind label %Rethrow
Ok: ; preds = %0
ret i32 0
Rethrow: ; preds = %0
unwind
}