1 ; RUN: opt < %s -scalarrepl -disable-output
3 target datalayout = "e-p:32:32"
4 target triple = "i686-apple-darwin8.7.2"
6 define void @glgProcessColor() {
8 %source_ptr = alloca i8*, align 4 ; <i8**> [#uses=2]
9 br i1 false, label %bb1357, label %cond_next583
10 cond_next583: ; preds = %entry
12 bb1357: ; preds = %entry
13 br i1 false, label %bb1365, label %bb27055
14 bb1365: ; preds = %bb1357
15 switch i32 0, label %cond_next10377 [
29 i32 16, label %bb10249
31 bb4679: ; preds = %bb1365, %bb1365, %bb1365, %bb1365, %bb1365, %bb1365
33 bb4859: ; preds = %bb1365
35 bb5115: ; preds = %bb1365
37 bb6651: ; preds = %bb1365
39 bb7147: ; preds = %bb1365
41 bb8683: ; preds = %bb1365
43 bb9131: ; preds = %bb1365
45 bb9875: ; preds = %bb1365
46 %source_ptr9884 = bitcast i8** %source_ptr to i8** ; <i8**> [#uses=1]
47 %tmp9885 = load i8** %source_ptr9884 ; <i8*> [#uses=0]
49 bb10249: ; preds = %bb1365
50 %source_ptr10257 = bitcast i8** %source_ptr to i16** ; <i16**> [#uses=1]
51 %tmp10258 = load i16** %source_ptr10257 ; <i16*> [#uses=0]
53 cond_next10377: ; preds = %bb1365
55 bb27055: ; preds = %bb1357