1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
3
4  %llvm.dbg.anchor.type = type { i32, i32 }
5  %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
6  %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
7  %llvm.dbg.composite.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }*, { }* }
8  %llvm.dbg.derivedtype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }* }
9  %llvm.dbg.global_variable.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1, { }* }
10  %llvm.dbg.subprogram.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1 }
11  %llvm.dbg.subrange.type = type { i32, i64, i64 }
12  %struct.Group = type { %struct.Scene, %struct.Sphere, %"struct.std::list<Scene*,std::allocator<Scene*> >" }
13  %struct.Ray = type { %struct.Vec, %struct.Vec }
14  %struct.Scene = type { i32 (...)** }
15  %struct.Sphere = type { %struct.Scene, %struct.Vec, double }
16  %struct.Vec = type { double, double, double }
17  %struct.__class_type_info_pseudo = type { %struct.__type_info_pseudo }
18  %struct.__false_type = type <{ i8 }>
19  %"struct.__gnu_cxx::new_allocator<Scene*>" = type <{ i8 }>
20  %"struct.__gnu_cxx::new_allocator<std::_List_node<Scene*> >" = type <{ i8 }>
21  %struct.__si_class_type_info_pseudo = type { %struct.__type_info_pseudo, %"struct.std::type_info"* }
22  %struct.__type_info_pseudo = type { i8*, i8* }
23  %"struct.std::Hit" = type { double, %struct.Vec }
24  %"struct.std::_List_base<Scene*,std::allocator<Scene*> >" = type { %"struct.std::_List_base<Scene*,std::allocator<Scene*> >::_List_impl" }
25  %"struct.std::_List_base<Scene*,std::allocator<Scene*> >::_List_impl" = type { %"struct.std::_List_node_base" }
26  %"struct.std::_List_const_iterator<Scene*>" = type { %"struct.std::_List_node_base"* }
27  %"struct.std::_List_iterator<Scene*>" = type { %"struct.std::_List_node_base"* }
28  %"struct.std::_List_node<Scene*>" = type { %"struct.std::_List_node_base", %struct.Scene* }
29  %"struct.std::_List_node_base" = type { %"struct.std::_List_node_base"*, %"struct.std::_List_node_base"* }
30  %"struct.std::allocator<Scene*>" = type <{ i8 }>
31  %"struct.std::allocator<std::_List_node<Scene*> >" = type <{ i8 }>
32  %"struct.std::basic_ios<char,std::char_traits<char> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<char,std::char_traits<char> >"*, i8, i8, %"struct.std::basic_streambuf<char,std::char_traits<char> >"*, %"struct.std::ctype<char>"*, %"struct.std::num_get<char,std::istreambuf_iterator<char, std::char_traits<char> > >"*, %"struct.std::num_get<char,std::istreambuf_iterator<char, std::char_traits<char> > >"* }
33  %"struct.std::basic_ostream<char,std::char_traits<char> >" = type { i32 (...)**, %"struct.std::basic_ios<char,std::char_traits<char> >" }
34  %"struct.std::basic_streambuf<char,std::char_traits<char> >" = type { i32 (...)**, i8*, i8*, i8*, i8*, i8*, i8*, %"struct.std::locale" }
35  %"struct.std::ctype<char>" = type { %"struct.std::locale::facet", i32*, i8, i32*, i32*, i32*, i8, [256 x i8], [256 x i8], i8 }
36  %"struct.std::ios_base" = type { i32 (...)**, i32, i32, i32, i32, i32, %"struct.std::ios_base::_Callback_list"*, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, %"struct.std::ios_base::_Words"*, %"struct.std::locale" }
37  %"struct.std::ios_base::Init" = type <{ i8 }>
38  %"struct.std::ios_base::_Callback_list" = type { %"struct.std::ios_base::_Callback_list"*, void (i32, %"struct.std::ios_base"*, i32)*, i32, i32 }
39  %"struct.std::ios_base::_Words" = type { i8*, i32 }
40  %"struct.std::list<Scene*,std::allocator<Scene*> >" = type { %"struct.std::_List_base<Scene*,std::allocator<Scene*> >" }
41  %"struct.std::locale" = type { %"struct.std::locale::_Impl"* }
42  %"struct.std::locale::_Impl" = type { i32, %"struct.std::locale::facet"**, i32, %"struct.std::locale::facet"**, i8** }
43  %"struct.std::locale::facet" = type { i32 (...)**, i32 }
44  %"struct.std::num_get<char,std::istreambuf_iterator<char, std::char_traits<char> > >" = type { %"struct.std::locale::facet" }
45  %"struct.std::num_put<char,std::ostreambuf_iterator<char, std::char_traits<char> > >" = type { %"struct.std::locale::facet" }
46  %"struct.std::numeric_limits<double>" = type <{ i8 }>
47  %"struct.std::type_info" = type { i32 (...)**, i8* }
48@llvm.dbg.subprogram947 = external constant %llvm.dbg.subprogram.type		; <%llvm.dbg.subprogram.type*> [#uses=1]
49
50declare void @llvm.dbg.func.start({ }*) nounwind
51
52declare void @llvm.dbg.region.end({ }*) nounwind
53
54declare void @_ZN9__gnu_cxx13new_allocatorIP5SceneED2Ev(%struct.__false_type*) nounwind
55
56define void @_ZNSaIP5SceneED1Ev(%struct.__false_type* %this) nounwind {
57; CHECK-LABEL: @_ZNSaIP5SceneED1Ev(
58; CHECK-NEXT:  entry:
59; CHECK-NEXT:    [[THIS_ADDR:%.*]] = alloca %struct.__false_type*, align 8
60; CHECK-NEXT:    %"alloca point" = bitcast i32 0 to i32
61; CHECK-NEXT:    call void @llvm.dbg.func.start({}* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram947 to {}*))
62; CHECK-NEXT:    store %struct.__false_type* [[THIS:%.*]], %struct.__false_type** [[THIS_ADDR]], align 8
63; CHECK-NEXT:    [[TMP0:%.*]] = load %struct.__false_type*, %struct.__false_type** [[THIS_ADDR]], align 4
64; CHECK-NEXT:    call void @_ZN9__gnu_cxx13new_allocatorIP5SceneED2Ev(%struct.__false_type* [[TMP0]]) #[[ATTR0:[0-9]+]]
65; CHECK-NEXT:    call void @llvm.dbg.region.end({}* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram947 to {}*))
66; CHECK-NEXT:    ret void
67;
68entry:
69  %this_addr = alloca %struct.__false_type*		; <%struct.__false_type**> [#uses=2]
70  %"alloca point" = bitcast i32 0 to i32		; <i32> [#uses=0]
71  call void @llvm.dbg.func.start({ }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram947 to { }*))
72  store %struct.__false_type* %this, %struct.__false_type** %this_addr
73  %0 = load %struct.__false_type*, %struct.__false_type** %this_addr, align 4		; <%struct.__false_type*> [#uses=1]
74  call void @_ZN9__gnu_cxx13new_allocatorIP5SceneED2Ev(%struct.__false_type* %0) nounwind
75  br label %bb
76
77bb:		; preds = %entry
78  br label %return
79
80return:		; preds = %bb
81  call void @llvm.dbg.region.end({ }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram947 to { }*))
82  ret void
83}
84