blob: 728624a5f23021b4787684532c8212b6a18503e4 [file] [log] [blame]
Hal Finkel43935592015-02-18 03:12:28 +00001; RUN: opt -bdce -S < %s | FileCheck %s
2target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3target triple = "x86_64-unknown-linux-gnu"
4
5declare i32 @__gxx_personality_v0(...)
6
David Majnemer7fddecc2015-06-17 20:52:32 +00007define fastcc void @_ZN11__sanitizerL12TestRegistryEPNS_14ThreadRegistryEb() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
Hal Finkel43935592015-02-18 03:12:28 +00008entry:
9 br i1 undef, label %if.else, label %entry.if.end_crit_edge
10
11if.else:
12 ret void
13
14invoke.cont70:
15 store i32 %call71, i32* undef, align 4
16 br label %if.else
17
18; CHECK-LABEL: @_ZN11__sanitizerL12TestRegistryEPNS_14ThreadRegistryEb
19; CHECK: store i32 %call71
20
21lpad65.loopexit.split-lp.loopexit.split-lp:
22 br label %if.else
23
24lpad65.loopexit.split-lp.loopexit.split-lp.loopexit:
David Majnemer7fddecc2015-06-17 20:52:32 +000025 %lpad.loopexit1121 = landingpad { i8*, i32 }
Hal Finkel43935592015-02-18 03:12:28 +000026 cleanup
27 br label %lpad65.loopexit.split-lp.loopexit.split-lp
28
29entry.if.end_crit_edge:
30 %call71 = invoke i32 @_ZN11__sanitizer14ThreadRegistry12CreateThreadEmbjPv()
31 to label %invoke.cont70 unwind label %lpad65.loopexit.split-lp.loopexit.split-lp.loopexit
32}
33
34declare i32 @_ZN11__sanitizer14ThreadRegistry12CreateThreadEmbjPv()
35
36attributes #0 = { uwtable }
37