1 ; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin10 -relocation-model=pic -disable-fp-elim -color-ss-with-regs -stats -info-output-file - > %t
2 ; RUN: grep stackcoloring %t | grep "loads eliminated"
3 ; RUN: grep stackcoloring %t | grep "stack slot refs replaced with reg refs" | grep 5
4 ; RUN: grep asm-printer %t | grep 175
6 type { [62 x %struct.Bitvec*] } ; type %0
8 type { double } ; type %2
9 %struct..5sPragmaType = type { i8*, i32 }
10 %struct.AggInfo = type { i8, i8, i32, %struct.ExprList*, i32, %struct.AggInfo_col*, i32, i32, i32, %struct.AggInfo_func*, i32, i32 }
11 %struct.AggInfo_col = type { %struct.Table*, i32, i32, i32, i32, %struct.Expr* }
12 %struct.AggInfo_func = type { %struct.Expr*, %struct.FuncDef*, i32, i32 }
13 %struct.AuxData = type { i8*, void (i8*)* }
14 %struct.Bitvec = type { i32, i32, i32, %0 }
15 %struct.BtCursor = type { %struct.Btree*, %struct.BtShared*, %struct.BtCursor*, %struct.BtCursor*, i32 (i8*, i32, i8*, i32, i8*)*, i8*, i32, %struct.MemPage*, i32, %struct.CellInfo, i8, i8, i8*, i64, i32, i8, i32* }
16 %struct.BtLock = type { %struct.Btree*, i32, i8, %struct.BtLock* }
17 %struct.BtShared = type { %struct.Pager*, %struct.sqlite3*, %struct.BtCursor*, %struct.MemPage*, i8, i8, i8, i8, i8, i8, i8, i8, i32, i16, i16, i32, i32, i32, i32, i8, i32, i8*, void (i8*)*, %struct.sqlite3_mutex*, %struct.BusyHandler, i32, %struct.BtShared*, %struct.BtLock*, %struct.Btree* }
18 %struct.Btree = type { %struct.sqlite3*, %struct.BtShared*, i8, i8, i8, i32, %struct.Btree*, %struct.Btree* }
19 %struct.BtreeMutexArray = type { i32, [11 x %struct.Btree*] }
20 %struct.BusyHandler = type { i32 (i8*, i32)*, i8*, i32 }
21 %struct.CellInfo = type { i8*, i64, i32, i32, i16, i16, i16, i16 }
22 %struct.CollSeq = type { i8*, i8, i8, i8*, i32 (i8*, i32, i8*, i32, i8*)*, void (i8*)* }
23 %struct.Column = type { i8*, %struct.Expr*, i8*, i8*, i8, i8, i8, i8 }
24 %struct.Context = type { i64, i32, %struct.Fifo }
25 %struct.CountCtx = type { i64 }
26 %struct.Cursor = type { %struct.BtCursor*, i32, i64, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, %struct.Btree*, i32, i8*, i64, i8*, %struct.KeyInfo*, i32, i64, %struct.sqlite3_vtab_cursor*, %struct.sqlite3_module*, i32, i32, i32*, i32*, i8* }
27 %struct.Db = type { i8*, %struct.Btree*, i8, i8, i8*, void (i8*)*, %struct.Schema* }
28 %struct.DbPage = type { %struct.Pager*, i32, %struct.DbPage*, %struct.DbPage*, %struct.PagerLruLink, %struct.DbPage*, i8, i8, i8, i8, i8, i16, %struct.DbPage*, %struct.DbPage*, i8* }
29 %struct.Expr = type { i8, i8, i16, %struct.CollSeq*, %struct.Expr*, %struct.Expr*, %struct.ExprList*, %struct..5sPragmaType, %struct..5sPragmaType, i32, i32, %struct.AggInfo*, i32, i32, %struct.Select*, %struct.Table*, i32 }
30 %struct.ExprList = type { i32, i32, i32, %struct.ExprList_item* }
31 %struct.ExprList_item = type { %struct.Expr*, i8*, i8, i8, i8 }
32 %struct.FKey = type { %struct.Table*, %struct.FKey*, i8*, %struct.FKey*, i32, %struct.sColMap*, i8, i8, i8, i8 }
33 %struct.Fifo = type { i32, %struct.FifoPage*, %struct.FifoPage* }
34 %struct.FifoPage = type { i32, i32, i32, %struct.FifoPage*, [1 x i64] }
35 %struct.FuncDef = type { i16, i8, i8, i8, i8*, %struct.FuncDef*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*, i32, %struct.Mem**)*, void (%struct.sqlite3_context*)*, [1 x i8] }
36 %struct.Hash = type { i8, i8, i32, i32, %struct.HashElem*, %struct._ht* }
37 %struct.HashElem = type { %struct.HashElem*, %struct.HashElem*, i8*, i8*, i32 }
38 %struct.IdList = type { %struct..5sPragmaType*, i32, i32 }
39 %struct.Index = type { i8*, i32, i32*, i32*, %struct.Table*, i32, i8, i8, i8*, %struct.Index*, %struct.Schema*, i8*, i8** }
40 %struct.KeyInfo = type { %struct.sqlite3*, i8, i8, i8, i32, i8*, [1 x %struct.CollSeq*] }
41 %struct.Mem = type { %struct.CountCtx, double, %struct.sqlite3*, i8*, i32, i16, i8, i8, void (i8*)* }
42 %struct.MemPage = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, [5 x %struct._OvflCell], %struct.BtShared*, i8*, %struct.DbPage*, i32, %struct.MemPage* }
43 %struct.Module = type { %struct.sqlite3_module*, i8*, i8*, void (i8*)* }
44 %struct.Op = type { i8, i8, i8, i8, i32, i32, i32, %1 }
45 %struct.Pager = type { %struct.sqlite3_vfs*, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.Bitvec*, %struct.Bitvec*, i8*, i8*, i8*, i8*, %struct.sqlite3_file*, %struct.sqlite3_file*, %struct.sqlite3_file*, %struct.BusyHandler*, %struct.PagerLruList, %struct.DbPage*, %struct.DbPage*, %struct.DbPage*, i64, i64, i64, i64, i64, i32, void (%struct.DbPage*, i32)*, void (%struct.DbPage*, i32)*, i32, %struct.DbPage**, i8*, [16 x i8] }
46 %struct.PagerLruLink = type { %struct.DbPage*, %struct.DbPage* }
47 %struct.PagerLruList = type { %struct.DbPage*, %struct.DbPage*, %struct.DbPage* }
48 %struct.Schema = type { i32, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Hash, %struct.Table*, i8, i8, i16, i32, %struct.sqlite3* }
49 %struct.Select = type { %struct.ExprList*, i8, i8, i8, i8, i8, i8, i8, %struct.SrcList*, %struct.Expr*, %struct.ExprList*, %struct.Expr*, %struct.ExprList*, %struct.Select*, %struct.Select*, %struct.Select*, %struct.Expr*, %struct.Expr*, i32, i32, [3 x i32] }
50 %struct.SrcList = type { i16, i16, [1 x %struct.SrcList_item] }
51 %struct.SrcList_item = type { i8*, i8*, i8*, %struct.Table*, %struct.Select*, i8, i8, i32, %struct.Expr*, %struct.IdList*, i64 }
52 %struct.Table = type { i8*, i32, %struct.Column*, i32, %struct.Index*, i32, %struct.Select*, i32, %struct.Trigger*, %struct.FKey*, i8*, %struct.Expr*, i32, i8, i8, i8, i8, i8, i8, i8, %struct.Module*, %struct.sqlite3_vtab*, i32, i8**, %struct.Schema* }
53 %struct.Trigger = type { i8*, i8*, i8, i8, %struct.Expr*, %struct.IdList*, %struct..5sPragmaType, %struct.Schema*, %struct.Schema*, %struct.TriggerStep*, %struct.Trigger* }
54 %struct.TriggerStep = type { i32, i32, %struct.Trigger*, %struct.Select*, %struct..5sPragmaType, %struct.Expr*, %struct.ExprList*, %struct.IdList*, %struct.TriggerStep*, %struct.TriggerStep* }
55 %struct.Vdbe = type { %struct.sqlite3*, %struct.Vdbe*, %struct.Vdbe*, i32, i32, %struct.Op*, i32, i32, i32*, %struct.Mem**, %struct.Mem*, i32, %struct.Cursor**, i32, %struct.Mem*, i8**, i32, i32, i32, %struct.Mem*, i32, i32, %struct.Fifo, i32, i32, %struct.Context*, i32, i32, i32, i32, i32, [25 x i32], i32, i32, i8**, i8*, %struct.Mem*, i8, i8, i8, i8, i8, i8, i32, i64, i32, %struct.BtreeMutexArray, i32, i8*, i32 }
56 %struct.VdbeFunc = type { %struct.FuncDef*, i32, [1 x %struct.AuxData] }
57 %struct._OvflCell = type { i8*, i16 }
58 %struct._ht = type { i32, %struct.HashElem* }
59 %struct.sColMap = type { i32, i8* }
60 %struct.sqlite3 = type { %struct.sqlite3_vfs*, i32, %struct.Db*, i32, i32, i32, i32, i8, i8, i8, i8, i32, %struct.CollSeq*, i64, i64, i32, i32, i32, %struct.sqlite3_mutex*, %struct.sqlite3InitInfo, i32, i8**, %struct.Vdbe*, i32, void (i8*, i8*)*, i8*, void (i8*, i8*, i64)*, i8*, i8*, i32 (i8*)*, i8*, void (i8*)*, i8*, void (i8*, i32, i8*, i8*, i64)*, void (i8*, %struct.sqlite3*, i32, i8*)*, void (i8*, %struct.sqlite3*, i32, i8*)*, i8*, %struct.Mem*, i8*, i8*, %2, i32 (i8*, i32, i8*, i8*, i8*, i8*)*, i8*, i32 (i8*)*, i8*, i32, %struct.Hash, %struct.Table*, %struct.sqlite3_vtab**, i32, %struct.Hash, %struct.Hash, %struct.BusyHandler, i32, [2 x %struct.Db], i8 }
61 %struct.sqlite3InitInfo = type { i32, i32, i8 }
62 %struct.sqlite3_context = type { %struct.FuncDef*, %struct.VdbeFunc*, %struct.Mem, %struct.Mem*, i32, %struct.CollSeq* }
63 %struct.sqlite3_file = type { %struct.sqlite3_io_methods* }
64 %struct.sqlite3_index_constraint = type { i32, i8, i8, i32 }
65 %struct.sqlite3_index_constraint_usage = type { i32, i8 }
66 %struct.sqlite3_index_info = type { i32, %struct.sqlite3_index_constraint*, i32, %struct.sqlite3_index_constraint_usage*, %struct.sqlite3_index_constraint_usage*, i32, i8*, i32, i32, double }
67 %struct.sqlite3_io_methods = type { i32, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*, i8*, i32, i64)*, i32 (%struct.sqlite3_file*, i8*, i32, i64)*, i32 (%struct.sqlite3_file*, i64)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*, i64*)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*, i32)*, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*, i32, i8*)*, i32 (%struct.sqlite3_file*)*, i32 (%struct.sqlite3_file*)* }
68 %struct.sqlite3_module = type { i32, i32 (%struct.sqlite3*, i8*, i32, i8**, %struct.sqlite3_vtab**, i8**)*, i32 (%struct.sqlite3*, i8*, i32, i8**, %struct.sqlite3_vtab**, i8**)*, i32 (%struct.sqlite3_vtab*, %struct.sqlite3_index_info*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*, %struct.sqlite3_vtab_cursor**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*, i32, i8*, i32, %struct.Mem**)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*)*, i32 (%struct.sqlite3_vtab_cursor*, %struct.sqlite3_context*, i32)*, i32 (%struct.sqlite3_vtab_cursor*, i64*)*, i32 (%struct.sqlite3_vtab*, i32, %struct.Mem**, i64*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*)*, i32 (%struct.sqlite3_vtab*, i32, i8*, void (%struct.sqlite3_context*, i32, %struct.Mem**)**, i8**)*, i32 (%struct.sqlite3_vtab*, i8*)* }
69 %struct.sqlite3_mutex = type opaque
70 %struct.sqlite3_vfs = type { i32, i32, i32, %struct.sqlite3_vfs*, i8*, i8*, i32 (%struct.sqlite3_vfs*, i8*, %struct.sqlite3_file*, i32, i32*)*, i32 (%struct.sqlite3_vfs*, i8*, i32)*, i32 (%struct.sqlite3_vfs*, i8*, i32)*, i32 (%struct.sqlite3_vfs*, i32, i8*)*, i32 (%struct.sqlite3_vfs*, i8*, i32, i8*)*, i8* (%struct.sqlite3_vfs*, i8*)*, void (%struct.sqlite3_vfs*, i32, i8*)*, i8* (%struct.sqlite3_vfs*, i8*, i8*)*, void (%struct.sqlite3_vfs*, i8*)*, i32 (%struct.sqlite3_vfs*, i32, i8*)*, i32 (%struct.sqlite3_vfs*, i32)*, i32 (%struct.sqlite3_vfs*, double*)* }
71 %struct.sqlite3_vtab = type { %struct.sqlite3_module*, i32, i8* }
72 %struct.sqlite3_vtab_cursor = type { %struct.sqlite3_vtab* }
73 @llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.MemPage*, i32, i32)* @dropCell to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
75 define fastcc void @dropCell(%struct.MemPage* nocapture %pPage, i32 %idx, i32 %sz) nounwind ssp {
77 %0 = getelementptr %struct.MemPage* %pPage, i64 0, i32 18 ; <i8**> [#uses=1]
78 %1 = load i8** %0, align 8 ; <i8*> [#uses=34]
79 %2 = getelementptr %struct.MemPage* %pPage, i64 0, i32 12 ; <i16*> [#uses=1]
80 %3 = load i16* %2, align 2 ; <i16> [#uses=1]
81 %4 = zext i16 %3 to i32 ; <i32> [#uses=2]
82 %5 = shl i32 %idx, 1 ; <i32> [#uses=2]
83 %6 = add i32 %4, %5 ; <i32> [#uses=1]
84 %7 = sext i32 %6 to i64 ; <i64> [#uses=2]
85 %8 = getelementptr i8* %1, i64 %7 ; <i8*> [#uses=1]
86 %9 = load i8* %8, align 1 ; <i8> [#uses=2]
87 %10 = zext i8 %9 to i32 ; <i32> [#uses=1]
88 %11 = shl i32 %10, 8 ; <i32> [#uses=1]
89 %.sum3 = add i64 %7, 1 ; <i64> [#uses=1]
90 %12 = getelementptr i8* %1, i64 %.sum3 ; <i8*> [#uses=1]
91 %13 = load i8* %12, align 1 ; <i8> [#uses=2]
92 %14 = zext i8 %13 to i32 ; <i32> [#uses=1]
93 %15 = or i32 %11, %14 ; <i32> [#uses=3]
94 %16 = icmp slt i32 %sz, 4 ; <i1> [#uses=1]
95 %size_addr.0.i = select i1 %16, i32 4, i32 %sz ; <i32> [#uses=3]
96 %17 = getelementptr %struct.MemPage* %pPage, i64 0, i32 8 ; <i8*> [#uses=5]
97 %18 = load i8* %17, align 8 ; <i8> [#uses=1]
98 %19 = zext i8 %18 to i32 ; <i32> [#uses=4]
99 %20 = add i32 %19, 1 ; <i32> [#uses=2]
102 bb3.i: ; preds = %bb3.i, %entry
103 %addr.0.i = phi i32 [ %20, %entry ], [ %29, %bb3.i ] ; <i32> [#uses=1]
104 %21 = sext i32 %addr.0.i to i64 ; <i64> [#uses=2]
105 %22 = getelementptr i8* %1, i64 %21 ; <i8*> [#uses=2]
106 %23 = load i8* %22, align 1 ; <i8> [#uses=2]
107 %24 = zext i8 %23 to i32 ; <i32> [#uses=1]
108 %25 = shl i32 %24, 8 ; <i32> [#uses=1]
109 %.sum34.i = add i64 %21, 1 ; <i64> [#uses=1]
110 %26 = getelementptr i8* %1, i64 %.sum34.i ; <i8*> [#uses=2]
111 %27 = load i8* %26, align 1 ; <i8> [#uses=2]
112 %28 = zext i8 %27 to i32 ; <i32> [#uses=1]
113 %29 = or i32 %25, %28 ; <i32> [#uses=3]
114 %.not.i = icmp uge i32 %29, %15 ; <i1> [#uses=1]
115 %30 = icmp eq i32 %29, 0 ; <i1> [#uses=1]
116 %or.cond.i = or i1 %30, %.not.i ; <i1> [#uses=1]
117 br i1 %or.cond.i, label %bb5.i, label %bb3.i
119 bb5.i: ; preds = %bb3.i
120 store i8 %9, i8* %22, align 1
121 store i8 %13, i8* %26, align 1
122 %31 = zext i32 %15 to i64 ; <i64> [#uses=2]
123 %32 = getelementptr i8* %1, i64 %31 ; <i8*> [#uses=1]
124 store i8 %23, i8* %32, align 1
125 %.sum32.i = add i64 %31, 1 ; <i64> [#uses=1]
126 %33 = getelementptr i8* %1, i64 %.sum32.i ; <i8*> [#uses=1]
127 store i8 %27, i8* %33, align 1
128 %34 = add i32 %15, 2 ; <i32> [#uses=1]
129 %35 = zext i32 %34 to i64 ; <i64> [#uses=2]
130 %36 = getelementptr i8* %1, i64 %35 ; <i8*> [#uses=1]
131 %37 = lshr i32 %size_addr.0.i, 8 ; <i32> [#uses=1]
132 %38 = trunc i32 %37 to i8 ; <i8> [#uses=1]
133 store i8 %38, i8* %36, align 1
134 %39 = trunc i32 %size_addr.0.i to i8 ; <i8> [#uses=1]
135 %.sum31.i = add i64 %35, 1 ; <i64> [#uses=1]
136 %40 = getelementptr i8* %1, i64 %.sum31.i ; <i8*> [#uses=1]
137 store i8 %39, i8* %40, align 1
138 %41 = getelementptr %struct.MemPage* %pPage, i64 0, i32 14 ; <i16*> [#uses=4]
139 %42 = load i16* %41, align 2 ; <i16> [#uses=1]
140 %43 = trunc i32 %size_addr.0.i to i16 ; <i16> [#uses=1]
141 %44 = add i16 %42, %43 ; <i16> [#uses=1]
142 store i16 %44, i16* %41, align 2
143 %45 = load i8* %17, align 8 ; <i8> [#uses=1]
144 %46 = zext i8 %45 to i32 ; <i32> [#uses=1]
145 %47 = add i32 %46, 1 ; <i32> [#uses=1]
146 br label %bb11.outer.i
148 bb11.outer.i: ; preds = %bb6.i, %bb5.i
149 %addr.1.ph.i = phi i32 [ %47, %bb5.i ], [ %111, %bb6.i ] ; <i32> [#uses=1]
150 %48 = sext i32 %addr.1.ph.i to i64 ; <i64> [#uses=2]
151 %49 = getelementptr i8* %1, i64 %48 ; <i8*> [#uses=1]
152 %.sum30.i = add i64 %48, 1 ; <i64> [#uses=1]
153 %50 = getelementptr i8* %1, i64 %.sum30.i ; <i8*> [#uses=1]
156 bb6.i: ; preds = %bb11.i
157 %51 = zext i32 %111 to i64 ; <i64> [#uses=2]
158 %52 = getelementptr i8* %1, i64 %51 ; <i8*> [#uses=2]
159 %53 = load i8* %52, align 1 ; <i8> [#uses=1]
160 %54 = zext i8 %53 to i32 ; <i32> [#uses=1]
161 %55 = shl i32 %54, 8 ; <i32> [#uses=1]
162 %.sum24.i = add i64 %51, 1 ; <i64> [#uses=1]
163 %56 = getelementptr i8* %1, i64 %.sum24.i ; <i8*> [#uses=2]
164 %57 = load i8* %56, align 1 ; <i8> [#uses=3]
165 %58 = zext i8 %57 to i32 ; <i32> [#uses=1]
166 %59 = or i32 %55, %58 ; <i32> [#uses=5]
167 %60 = add i32 %111, 2 ; <i32> [#uses=1]
168 %61 = zext i32 %60 to i64 ; <i64> [#uses=2]
169 %62 = getelementptr i8* %1, i64 %61 ; <i8*> [#uses=2]
170 %63 = load i8* %62, align 1 ; <i8> [#uses=1]
171 %64 = zext i8 %63 to i32 ; <i32> [#uses=1]
172 %65 = shl i32 %64, 8 ; <i32> [#uses=1]
173 %.sum23.i = add i64 %61, 1 ; <i64> [#uses=1]
174 %66 = getelementptr i8* %1, i64 %.sum23.i ; <i8*> [#uses=2]
175 %67 = load i8* %66, align 1 ; <i8> [#uses=2]
176 %68 = zext i8 %67 to i32 ; <i32> [#uses=1]
177 %69 = or i32 %65, %68 ; <i32> [#uses=1]
178 %70 = add i32 %111, 3 ; <i32> [#uses=1]
179 %71 = add i32 %70, %69 ; <i32> [#uses=1]
180 %72 = icmp sge i32 %71, %59 ; <i1> [#uses=1]
181 %73 = icmp ne i32 %59, 0 ; <i1> [#uses=1]
182 %74 = and i1 %72, %73 ; <i1> [#uses=1]
183 br i1 %74, label %bb9.i, label %bb11.outer.i
185 bb9.i: ; preds = %bb6.i
186 %75 = load i8* %17, align 8 ; <i8> [#uses=1]
187 %76 = zext i8 %75 to i32 ; <i32> [#uses=1]
188 %77 = add i32 %76, 7 ; <i32> [#uses=1]
189 %78 = zext i32 %77 to i64 ; <i64> [#uses=1]
190 %79 = getelementptr i8* %1, i64 %78 ; <i8*> [#uses=2]
191 %80 = load i8* %79, align 1 ; <i8> [#uses=1]
192 %81 = sub i8 %109, %57 ; <i8> [#uses=1]
193 %82 = add i8 %81, %67 ; <i8> [#uses=1]
194 %83 = add i8 %82, %80 ; <i8> [#uses=1]
195 store i8 %83, i8* %79, align 1
196 %84 = zext i32 %59 to i64 ; <i64> [#uses=2]
197 %85 = getelementptr i8* %1, i64 %84 ; <i8*> [#uses=1]
198 %86 = load i8* %85, align 1 ; <i8> [#uses=1]
199 store i8 %86, i8* %52, align 1
200 %.sum22.i = add i64 %84, 1 ; <i64> [#uses=1]
201 %87 = getelementptr i8* %1, i64 %.sum22.i ; <i8*> [#uses=1]
202 %88 = load i8* %87, align 1 ; <i8> [#uses=1]
203 store i8 %88, i8* %56, align 1
204 %89 = add i32 %59, 2 ; <i32> [#uses=1]
205 %90 = zext i32 %89 to i64 ; <i64> [#uses=2]
206 %91 = getelementptr i8* %1, i64 %90 ; <i8*> [#uses=1]
207 %92 = load i8* %91, align 1 ; <i8> [#uses=1]
208 %93 = zext i8 %92 to i32 ; <i32> [#uses=1]
209 %94 = shl i32 %93, 8 ; <i32> [#uses=1]
210 %.sum20.i = add i64 %90, 1 ; <i64> [#uses=1]
211 %95 = getelementptr i8* %1, i64 %.sum20.i ; <i8*> [#uses=2]
212 %96 = load i8* %95, align 1 ; <i8> [#uses=1]
213 %97 = zext i8 %96 to i32 ; <i32> [#uses=1]
214 %98 = or i32 %94, %97 ; <i32> [#uses=1]
215 %99 = sub i32 %59, %111 ; <i32> [#uses=1]
216 %100 = add i32 %99, %98 ; <i32> [#uses=1]
217 %101 = lshr i32 %100, 8 ; <i32> [#uses=1]
218 %102 = trunc i32 %101 to i8 ; <i8> [#uses=1]
219 store i8 %102, i8* %62, align 1
220 %103 = load i8* %95, align 1 ; <i8> [#uses=1]
221 %104 = sub i8 %57, %109 ; <i8> [#uses=1]
222 %105 = add i8 %104, %103 ; <i8> [#uses=1]
223 store i8 %105, i8* %66, align 1
226 bb11.i: ; preds = %bb9.i, %bb11.outer.i
227 %106 = load i8* %49, align 1 ; <i8> [#uses=1]
228 %107 = zext i8 %106 to i32 ; <i32> [#uses=1]
229 %108 = shl i32 %107, 8 ; <i32> [#uses=1]
230 %109 = load i8* %50, align 1 ; <i8> [#uses=3]
231 %110 = zext i8 %109 to i32 ; <i32> [#uses=1]
232 %111 = or i32 %108, %110 ; <i32> [#uses=6]
233 %112 = icmp eq i32 %111, 0 ; <i1> [#uses=1]
234 br i1 %112, label %bb12.i, label %bb6.i
236 bb12.i: ; preds = %bb11.i
237 %113 = zext i32 %20 to i64 ; <i64> [#uses=2]
238 %114 = getelementptr i8* %1, i64 %113 ; <i8*> [#uses=2]
239 %115 = load i8* %114, align 1 ; <i8> [#uses=2]
240 %116 = add i32 %19, 5 ; <i32> [#uses=1]
241 %117 = zext i32 %116 to i64 ; <i64> [#uses=2]
242 %118 = getelementptr i8* %1, i64 %117 ; <i8*> [#uses=3]
243 %119 = load i8* %118, align 1 ; <i8> [#uses=1]
244 %120 = icmp eq i8 %115, %119 ; <i1> [#uses=1]
245 br i1 %120, label %bb13.i, label %bb1.preheader
247 bb13.i: ; preds = %bb12.i
248 %121 = add i32 %19, 2 ; <i32> [#uses=1]
249 %122 = zext i32 %121 to i64 ; <i64> [#uses=1]
250 %123 = getelementptr i8* %1, i64 %122 ; <i8*> [#uses=1]
251 %124 = load i8* %123, align 1 ; <i8> [#uses=1]
252 %125 = add i32 %19, 6 ; <i32> [#uses=1]
253 %126 = zext i32 %125 to i64 ; <i64> [#uses=1]
254 %127 = getelementptr i8* %1, i64 %126 ; <i8*> [#uses=1]
255 %128 = load i8* %127, align 1 ; <i8> [#uses=1]
256 %129 = icmp eq i8 %124, %128 ; <i1> [#uses=1]
257 br i1 %129, label %bb14.i, label %bb1.preheader
259 bb14.i: ; preds = %bb13.i
260 %130 = zext i8 %115 to i32 ; <i32> [#uses=1]
261 %131 = shl i32 %130, 8 ; <i32> [#uses=1]
262 %.sum29.i = add i64 %113, 1 ; <i64> [#uses=1]
263 %132 = getelementptr i8* %1, i64 %.sum29.i ; <i8*> [#uses=1]
264 %133 = load i8* %132, align 1 ; <i8> [#uses=1]
265 %134 = zext i8 %133 to i32 ; <i32> [#uses=1]
266 %135 = or i32 %134, %131 ; <i32> [#uses=2]
267 %136 = zext i32 %135 to i64 ; <i64> [#uses=1]
268 %137 = getelementptr i8* %1, i64 %136 ; <i8*> [#uses=1]
269 %138 = bitcast i8* %137 to i16* ; <i16*> [#uses=1]
270 %139 = bitcast i8* %114 to i16* ; <i16*> [#uses=1]
271 %tmp.i = load i16* %138, align 1 ; <i16> [#uses=1]
272 store i16 %tmp.i, i16* %139, align 1
273 %140 = load i8* %118, align 1 ; <i8> [#uses=1]
274 %141 = zext i8 %140 to i32 ; <i32> [#uses=1]
275 %142 = shl i32 %141, 8 ; <i32> [#uses=1]
276 %.sum28.i = add i64 %117, 1 ; <i64> [#uses=1]
277 %143 = getelementptr i8* %1, i64 %.sum28.i ; <i8*> [#uses=2]
278 %144 = load i8* %143, align 1 ; <i8> [#uses=2]
279 %145 = zext i8 %144 to i32 ; <i32> [#uses=1]
280 %146 = or i32 %142, %145 ; <i32> [#uses=1]
281 %147 = add i32 %135, 2 ; <i32> [#uses=1]
282 %148 = zext i32 %147 to i64 ; <i64> [#uses=2]
283 %149 = getelementptr i8* %1, i64 %148 ; <i8*> [#uses=1]
284 %150 = load i8* %149, align 1 ; <i8> [#uses=1]
285 %151 = zext i8 %150 to i32 ; <i32> [#uses=1]
286 %152 = shl i32 %151, 8 ; <i32> [#uses=1]
287 %.sum27.i = add i64 %148, 1 ; <i64> [#uses=1]
288 %153 = getelementptr i8* %1, i64 %.sum27.i ; <i8*> [#uses=2]
289 %154 = load i8* %153, align 1 ; <i8> [#uses=1]
290 %155 = zext i8 %154 to i32 ; <i32> [#uses=1]
291 %156 = or i32 %152, %155 ; <i32> [#uses=1]
292 %157 = add i32 %156, %146 ; <i32> [#uses=1]
293 %158 = lshr i32 %157, 8 ; <i32> [#uses=1]
294 %159 = trunc i32 %158 to i8 ; <i8> [#uses=1]
295 store i8 %159, i8* %118, align 1
296 %160 = load i8* %153, align 1 ; <i8> [#uses=1]
297 %161 = add i8 %160, %144 ; <i8> [#uses=1]
298 store i8 %161, i8* %143, align 1
299 br label %bb1.preheader
301 bb1.preheader: ; preds = %bb14.i, %bb13.i, %bb12.i
302 %i.08 = add i32 %idx, 1 ; <i32> [#uses=2]
303 %162 = getelementptr %struct.MemPage* %pPage, i64 0, i32 15 ; <i16*> [#uses=4]
304 %163 = load i16* %162, align 4 ; <i16> [#uses=2]
305 %164 = zext i16 %163 to i32 ; <i32> [#uses=1]
306 %165 = icmp sgt i32 %164, %i.08 ; <i1> [#uses=1]
307 br i1 %165, label %bb, label %bb2
309 bb: ; preds = %bb, %bb1.preheader
310 %indvar = phi i64 [ 0, %bb1.preheader ], [ %indvar.next, %bb ] ; <i64> [#uses=3]
311 %tmp16 = add i32 %5, %4 ; <i32> [#uses=1]
312 %tmp.17 = sext i32 %tmp16 to i64 ; <i64> [#uses=1]
313 %tmp19 = shl i64 %indvar, 1 ; <i64> [#uses=1]
314 %ctg2.sum = add i64 %tmp.17, %tmp19 ; <i64> [#uses=4]
315 %ctg229 = getelementptr i8* %1, i64 %ctg2.sum ; <i8*> [#uses=1]
316 %ctg229.sum31 = add i64 %ctg2.sum, 2 ; <i64> [#uses=1]
317 %166 = getelementptr i8* %1, i64 %ctg229.sum31 ; <i8*> [#uses=1]
318 %167 = load i8* %166, align 1 ; <i8> [#uses=1]
319 store i8 %167, i8* %ctg229
320 %ctg229.sum30 = add i64 %ctg2.sum, 3 ; <i64> [#uses=1]
321 %168 = getelementptr i8* %1, i64 %ctg229.sum30 ; <i8*> [#uses=1]
322 %169 = load i8* %168, align 1 ; <i8> [#uses=1]
323 %ctg229.sum = add i64 %ctg2.sum, 1 ; <i64> [#uses=1]
324 %170 = getelementptr i8* %1, i64 %ctg229.sum ; <i8*> [#uses=1]
325 store i8 %169, i8* %170, align 1
326 %indvar15 = trunc i64 %indvar to i32 ; <i32> [#uses=1]
327 %i.09 = add i32 %indvar15, %i.08 ; <i32> [#uses=1]
328 %i.0 = add i32 %i.09, 1 ; <i32> [#uses=1]
329 %171 = load i16* %162, align 4 ; <i16> [#uses=2]
330 %172 = zext i16 %171 to i32 ; <i32> [#uses=1]
331 %173 = icmp sgt i32 %172, %i.0 ; <i1> [#uses=1]
332 %indvar.next = add i64 %indvar, 1 ; <i64> [#uses=1]
333 br i1 %173, label %bb, label %bb2
335 bb2: ; preds = %bb, %bb1.preheader
336 %174 = phi i16 [ %163, %bb1.preheader ], [ %171, %bb ] ; <i16> [#uses=1]
337 %175 = add i16 %174, -1 ; <i16> [#uses=2]
338 store i16 %175, i16* %162, align 4
339 %176 = load i8* %17, align 8 ; <i8> [#uses=1]
340 %177 = zext i8 %176 to i32 ; <i32> [#uses=1]
341 %178 = add i32 %177, 3 ; <i32> [#uses=1]
342 %179 = zext i32 %178 to i64 ; <i64> [#uses=1]
343 %180 = getelementptr i8* %1, i64 %179 ; <i8*> [#uses=1]
344 %181 = lshr i16 %175, 8 ; <i16> [#uses=1]
345 %182 = trunc i16 %181 to i8 ; <i8> [#uses=1]
346 store i8 %182, i8* %180, align 1
347 %183 = load i8* %17, align 8 ; <i8> [#uses=1]
348 %184 = zext i8 %183 to i32 ; <i32> [#uses=1]
349 %185 = add i32 %184, 3 ; <i32> [#uses=1]
350 %186 = zext i32 %185 to i64 ; <i64> [#uses=1]
351 %187 = load i16* %162, align 4 ; <i16> [#uses=1]
352 %188 = trunc i16 %187 to i8 ; <i8> [#uses=1]
353 %.sum = add i64 %186, 1 ; <i64> [#uses=1]
354 %189 = getelementptr i8* %1, i64 %.sum ; <i8*> [#uses=1]
355 store i8 %188, i8* %189, align 1
356 %190 = load i16* %41, align 2 ; <i16> [#uses=1]
357 %191 = add i16 %190, 2 ; <i16> [#uses=1]
358 store i16 %191, i16* %41, align 2
359 %192 = getelementptr %struct.MemPage* %pPage, i64 0, i32 1 ; <i8*> [#uses=1]
360 store i8 1, i8* %192, align 1