1 ; RUN: opt -S -gvn-hoist < %s | FileCheck %s
3 %struct.__jmp_buf_tag = type { [8 x i64], i32 }
5 ; Check that hoisting only happens when the expression is very busy.
9 @test_exit_buf = global %struct.__jmp_buf_tag zeroinitializer
12 define void @test_command(i32 %c1) {
14 switch i32 %c1, label %exit [
28 call void @longjmp(%struct.__jmp_buf_tag* @test_exit_buf, i32 1) #0
32 declare void @longjmp(%struct.__jmp_buf_tag*, i32) #0
34 attributes #0 = { noreturn nounwind }
36 ; Check that the store is hoisted.
37 ; CHECK-LABEL: define void @fun(
45 if.then: ; preds = %entry
46 br i1 undef, label %sw0, label %sw1