1; 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 7define fastcc void @_ZN11__sanitizerL12TestRegistryEPNS_14ThreadRegistryEb() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { 8entry: 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: 25 %lpad.loopexit1121 = landingpad { i8*, i32 } 26 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 38