1 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
2 ; RUN: opt < %s -passes=simplifycfg -S | FileCheck %s
6 ; FIXME: Fails due to infinite loop in iterativelySimplifyCFG.
8 ; ModuleID = 'test/Transforms/SimplifyCFG/pr-new.ll'
9 source_filename = "test/Transforms/SimplifyCFG/pr-new.ll"
11 define i32 @test(float %arg) gc "statepoint-example" personality i32* ()* @blam {
14 %tmp = call i1 @llvm.experimental.widenable.condition()
15 br i1 %tmp, label %bb2, label %bb1
18 br i1 undef, label %bb7, label %bb5
21 %tmp3 = getelementptr inbounds i8, i8 addrspace(1)* undef, i64 16
22 br i1 undef, label %bb6, label %bb4
25 call void @snork() [ "deopt"() ]
34 bb7: ; preds = %bb6, %bb1
35 %tmp8 = call i32 (...) @llvm.experimental.deoptimize.i32(i32 10) [ "deopt"() ]
43 declare i32 @llvm.experimental.deoptimize.i32(...)
45 ; Function Attrs: inaccessiblememonly nofree nosync nounwind speculatable willreturn
46 declare i1 @llvm.experimental.widenable.condition() #0
48 attributes #0 = { inaccessiblememonly nofree nosync nounwind speculatable willreturn }