1 ; RUN: opt -bdce -S < %s | FileCheck %s 2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 3 target triple = "x86_64-unknown-linux-gnu" 4 5 declare i32 @__gxx_personality_v0(...) 6 7 define fastcc void @_ZN11__sanitizerL12TestRegistryEPNS_14ThreadRegistryEb() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { 8 entry: 9 br i1 undef, label %if.else, label %entry.if.end_crit_edge 10 11 if.else: 12 ret void 13 14 invoke.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 21 lpad65.loopexit.split-lp.loopexit.split-lp: 22 br label %if.else 23 24 lpad65.loopexit.split-lp.loopexit.split-lp.loopexit: 25 %lpad.loopexit1121 = landingpad { i8*, i32 } 26 cleanup 27 br label %lpad65.loopexit.split-lp.loopexit.split-lp 28 29 entry.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 34 declare i32 @_ZN11__sanitizer14ThreadRegistry12CreateThreadEmbjPv() 35 36 attributes #0 = { uwtable } 37 38