Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -disable-output
      2 
      3 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32"
      4 target triple = "thumb-apple-darwin8"
      5 @replacementUnichar = internal global i16 -3		; <i16*> [#uses=2]
      6 @"L_OBJC_IMAGE_INFO" = internal global [2 x i32] zeroinitializer		; <[2 x i32]*> [#uses=1]
      7 @llvm.used = appending global [1 x i8*] [ i8* bitcast ([2 x i32]* @"L_OBJC_IMAGE_INFO" to i8*) ]		; <[1 x i8*]*> [#uses=0]
      8 
      9 define zeroext i16 @__NSCharToUnicharCFWrapper(i8 zeroext  %ch)   {
     10 entry:
     11 	%iftmp.0.0.in.in = select i1 false, i16* @replacementUnichar, i16* null		; <i16*> [#uses=1]
     12 	%iftmp.0.0.in = load i16* %iftmp.0.0.in.in		; <i16> [#uses=1]
     13 	ret i16 %iftmp.0.0.in
     14 }
     15 
     16 define void @__NSASCIICharToUnichar() {
     17 entry:
     18 	ret void
     19 }
     20 
     21 define void @_NSDefaultCStringEncoding() {
     22 entry:
     23 	call void @__NSSetCStringCharToUnichar( )
     24 	br i1 false, label %cond_true6, label %cond_next8
     25 
     26 cond_true6:		; preds = %entry
     27 	store i16 -2, i16* @replacementUnichar
     28 	ret void
     29 
     30 cond_next8:		; preds = %entry
     31 	ret void
     32 }
     33 
     34 declare void @__NSSetCStringCharToUnichar()
     35