llvm-project/llvm/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll

16 lines
338 B
LLVM
Raw Normal View History

; RUN: opt %s -extract-blocks -disable-output
define i32 @foo() {
br label %EB
EB: ; preds = %0
%V = invoke i32 @foo( )
to label %Cont unwind label %Unw ; <i32> [#uses=1]
Cont: ; preds = %EB
ret i32 %V
Unw: ; preds = %EB
unwind
2004-11-13 08:06:32 +08:00
}