llvm-project/llvm/test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
Eric Christopher cee313d288 Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

19 lines
513 B
LLVM

; RUN: opt < %s -extract-blocks -disable-output
define i32 @foo() personality i32 (...)* @__gcc_personality_v0 {
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
%exn = landingpad { i8*, i32 }
catch i8* null
resume { i8*, i32 } %exn
}
declare i32 @__gcc_personality_v0(...)