38 lines · plain
1; RUN: opt < %s -passes=instcombine -disable-output2; PR23033 %"struct.std::ctype<char>" = type { %"struct.std::locale::facet", ptr, i8, ptr, ptr, ptr, i8, [256 x i8], [256 x i8], i8 }4 %"struct.std::locale::facet" = type { ptr, i32 }5 6declare ptr @_ZNSt6locale5facet15_S_get_c_localeEv()7 8declare ptr @__ctype_toupper_loc() readnone 9 10declare ptr @__ctype_tolower_loc() readnone 11 12define void @_ZNSt5ctypeIcEC2EPiPKtbm(ptr %this, ptr %unnamed_arg, ptr %__table, i8 zeroext %__del, i64 %__refs) personality ptr @__gxx_personality_v0 {13entry:14 %tmp8 = invoke ptr @_ZNSt6locale5facet15_S_get_c_localeEv( )15 to label %invcont unwind label %lpad ; <ptr> [#uses=0]16 17invcont: ; preds = %entry18 %tmp32 = invoke ptr @__ctype_toupper_loc( ) readnone 19 to label %invcont31 unwind label %lpad ; <ptr> [#uses=0]20 21invcont31: ; preds = %invcont22 %tmp38 = invoke ptr @__ctype_tolower_loc( ) readnone 23 to label %invcont37 unwind label %lpad ; <ptr> [#uses=1]24 25invcont37: ; preds = %invcont3126 %tmp39 = load ptr, ptr %tmp38, align 8 ; <ptr> [#uses=1]27 %tmp41 = getelementptr %"struct.std::ctype<char>", ptr %this, i32 0, i32 4 ; <ptr> [#uses=1]28 store ptr %tmp39, ptr %tmp41, align 829 ret void30 31lpad: ; preds = %invcont31, %invcont, %entry32 %exn = landingpad {ptr, i32}33 cleanup34 unreachable35}36 37declare i32 @__gxx_personality_v0(...)38