blob: dd4af9c15f46dd56d1d4bdd52abb0c0cca794607 [file] [log] [blame]
Brian Carlstrom7940e442013-07-12 13:46:57 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "dex/compiler_internals.h"
18
19namespace art {
20
21#define DEBUG_OPT(X)
22
23/* Check RAW, WAR, and RAW dependency on the register operands */
buzbeeb48819d2013-09-14 16:15:25 -070024#define CHECK_REG_DEP(use, def, check) ((def & check->u.m.use_mask) || \
25 ((use | def) & check->u.m.def_mask))
Brian Carlstrom7940e442013-07-12 13:46:57 -070026
27/* Scheduler heuristics */
28#define MAX_HOIST_DISTANCE 20
29#define LDLD_DISTANCE 4
30#define LD_LATENCY 2
31
Brian Carlstrom2ce745c2013-07-17 17:44:30 -070032static bool IsDalvikRegisterClobbered(LIR* lir1, LIR* lir2) {
buzbeeb48819d2013-09-14 16:15:25 -070033 int reg1Lo = DECODE_ALIAS_INFO_REG(lir1->flags.alias_info);
34 int reg1Hi = reg1Lo + DECODE_ALIAS_INFO_WIDE(lir1->flags.alias_info);
35 int reg2Lo = DECODE_ALIAS_INFO_REG(lir2->flags.alias_info);
36 int reg2Hi = reg2Lo + DECODE_ALIAS_INFO_WIDE(lir2->flags.alias_info);
Brian Carlstrom7940e442013-07-12 13:46:57 -070037
38 return (reg1Lo == reg2Lo) || (reg1Lo == reg2Hi) || (reg1Hi == reg2Lo);
39}
40
41/* Convert a more expensive instruction (ie load) into a move */
Brian Carlstrom2ce745c2013-07-17 17:44:30 -070042void Mir2Lir::ConvertMemOpIntoMove(LIR* orig_lir, int dest, int src) {
Brian Carlstrom7940e442013-07-12 13:46:57 -070043 /* Insert a move to replace the load */
44 LIR* move_lir;
45 move_lir = OpRegCopyNoInsert(dest, src);
46 /*
47 * Insert the converted instruction after the original since the
48 * optimization is scannng in the top-down order and the new instruction
49 * will need to be re-checked (eg the new dest clobbers the src used in
50 * this_lir).
51 */
52 InsertLIRAfter(orig_lir, move_lir);
53}
54
55/*
56 * Perform a pass of top-down walk, from the second-last instruction in the
57 * superblock, to eliminate redundant loads and stores.
58 *
59 * An earlier load can eliminate a later load iff
60 * 1) They are must-aliases
61 * 2) The native register is not clobbered in between
62 * 3) The memory location is not written to in between
63 *
64 * An earlier store can eliminate a later load iff
65 * 1) They are must-aliases
66 * 2) The native register is not clobbered in between
67 * 3) The memory location is not written to in between
68 *
69 * A later store can be eliminated by an earlier store iff
70 * 1) They are must-aliases
71 * 2) The memory location is not written to in between
72 */
Brian Carlstrom2ce745c2013-07-17 17:44:30 -070073void Mir2Lir::ApplyLoadStoreElimination(LIR* head_lir, LIR* tail_lir) {
Brian Carlstrom7940e442013-07-12 13:46:57 -070074 LIR* this_lir;
75
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -070076 if (head_lir == tail_lir) {
77 return;
78 }
Brian Carlstrom7940e442013-07-12 13:46:57 -070079
80 for (this_lir = PREV_LIR(tail_lir); this_lir != head_lir; this_lir = PREV_LIR(this_lir)) {
buzbee409fe942013-10-11 10:49:56 -070081 if (IsPseudoLirOp(this_lir->opcode)) {
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -070082 continue;
83 }
Brian Carlstrom7940e442013-07-12 13:46:57 -070084
85 int sink_distance = 0;
86
87 uint64_t target_flags = GetTargetInstFlags(this_lir->opcode);
88
89 /* Skip non-interesting instructions */
90 if ((this_lir->flags.is_nop == true) ||
91 (target_flags & IS_BRANCH) ||
92 ((target_flags & (REG_DEF0 | REG_DEF1)) == (REG_DEF0 | REG_DEF1)) || // Skip wide loads.
93 ((target_flags & (REG_USE0 | REG_USE1 | REG_USE2)) ==
94 (REG_USE0 | REG_USE1 | REG_USE2)) || // Skip wide stores.
Razvan A Lupusoru99ad7232014-02-25 17:41:08 -080095 // Skip instructions that are neither loads or stores.
96 !(target_flags & (IS_LOAD | IS_STORE)) ||
97 // Skip instructions that do both load and store.
98 ((target_flags & (IS_STORE | IS_LOAD)) == (IS_STORE | IS_LOAD))) {
Brian Carlstrom7940e442013-07-12 13:46:57 -070099 continue;
100 }
101
102 int native_reg_id;
103 if (cu_->instruction_set == kX86) {
104 // If x86, location differs depending on whether memory/reg operation.
buzbee56c71782013-09-05 17:13:19 -0700105 native_reg_id = (target_flags & IS_STORE) ? this_lir->operands[2] : this_lir->operands[0];
Brian Carlstrom7940e442013-07-12 13:46:57 -0700106 } else {
107 native_reg_id = this_lir->operands[0];
108 }
buzbee56c71782013-09-05 17:13:19 -0700109 bool is_this_lir_load = target_flags & IS_LOAD;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700110 LIR* check_lir;
111 /* Use the mem mask to determine the rough memory location */
buzbeeb48819d2013-09-14 16:15:25 -0700112 uint64_t this_mem_mask = (this_lir->u.m.use_mask | this_lir->u.m.def_mask) & ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700113
114 /*
115 * Currently only eliminate redundant ld/st for constant and Dalvik
116 * register accesses.
117 */
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700118 if (!(this_mem_mask & (ENCODE_LITERAL | ENCODE_DALVIK_REG))) {
119 continue;
120 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700121
buzbeeb48819d2013-09-14 16:15:25 -0700122 uint64_t stop_def_reg_mask = this_lir->u.m.def_mask & ~ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700123 uint64_t stop_use_reg_mask;
124 if (cu_->instruction_set == kX86) {
buzbeeb48819d2013-09-14 16:15:25 -0700125 stop_use_reg_mask = (IS_BRANCH | this_lir->u.m.use_mask) & ~ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700126 } else {
127 /*
128 * Add pc to the resource mask to prevent this instruction
129 * from sinking past branch instructions. Also take out the memory
130 * region bits since stop_mask is used to check data/control
131 * dependencies.
132 */
buzbeeb48819d2013-09-14 16:15:25 -0700133 stop_use_reg_mask = (GetPCUseDefEncoding() | this_lir->u.m.use_mask) & ~ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700134 }
135
136 for (check_lir = NEXT_LIR(this_lir); check_lir != tail_lir; check_lir = NEXT_LIR(check_lir)) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700137 /*
138 * Skip already dead instructions (whose dataflow information is
139 * outdated and misleading).
140 */
buzbee409fe942013-10-11 10:49:56 -0700141 if (check_lir->flags.is_nop || IsPseudoLirOp(check_lir->opcode)) {
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700142 continue;
143 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700144
buzbeeb48819d2013-09-14 16:15:25 -0700145 uint64_t check_mem_mask = (check_lir->u.m.use_mask | check_lir->u.m.def_mask) & ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700146 uint64_t alias_condition = this_mem_mask & check_mem_mask;
147 bool stop_here = false;
148
149 /*
150 * Potential aliases seen - check the alias relations
151 */
152 uint64_t check_flags = GetTargetInstFlags(check_lir->opcode);
153 // TUNING: Support instructions with multiple register targets.
154 if ((check_flags & (REG_DEF0 | REG_DEF1)) == (REG_DEF0 | REG_DEF1)) {
155 stop_here = true;
156 } else if (check_mem_mask != ENCODE_MEM && alias_condition != 0) {
157 bool is_check_lir_load = check_flags & IS_LOAD;
158 if (alias_condition == ENCODE_LITERAL) {
159 /*
160 * Should only see literal loads in the instruction
161 * stream.
162 */
163 DCHECK(!(check_flags & IS_STORE));
164 /* Same value && same register type */
buzbeeb48819d2013-09-14 16:15:25 -0700165 if (check_lir->flags.alias_info == this_lir->flags.alias_info &&
Brian Carlstrom7940e442013-07-12 13:46:57 -0700166 SameRegType(check_lir->operands[0], native_reg_id)) {
167 /*
168 * Different destination register - insert
169 * a move
170 */
171 if (check_lir->operands[0] != native_reg_id) {
172 ConvertMemOpIntoMove(check_lir, check_lir->operands[0], native_reg_id);
173 }
buzbee252254b2013-09-08 16:20:53 -0700174 NopLIR(check_lir);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700175 }
176 } else if (alias_condition == ENCODE_DALVIK_REG) {
177 /* Must alias */
buzbeeb48819d2013-09-14 16:15:25 -0700178 if (check_lir->flags.alias_info == this_lir->flags.alias_info) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700179 /* Only optimize compatible registers */
180 bool reg_compatible = SameRegType(check_lir->operands[0], native_reg_id);
181 if ((is_this_lir_load && is_check_lir_load) ||
182 (!is_this_lir_load && is_check_lir_load)) {
183 /* RAR or RAW */
184 if (reg_compatible) {
185 /*
186 * Different destination register -
187 * insert a move
188 */
189 if (check_lir->operands[0] !=
190 native_reg_id) {
191 ConvertMemOpIntoMove(check_lir, check_lir->operands[0], native_reg_id);
192 }
buzbee252254b2013-09-08 16:20:53 -0700193 NopLIR(check_lir);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700194 } else {
195 /*
196 * Destinaions are of different types -
197 * something complicated going on so
198 * stop looking now.
199 */
200 stop_here = true;
201 }
202 } else if (is_this_lir_load && !is_check_lir_load) {
203 /* WAR - register value is killed */
204 stop_here = true;
205 } else if (!is_this_lir_load && !is_check_lir_load) {
206 /* WAW - nuke the earlier store */
buzbee252254b2013-09-08 16:20:53 -0700207 NopLIR(this_lir);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700208 stop_here = true;
209 }
210 /* Partial overlap */
211 } else if (IsDalvikRegisterClobbered(this_lir, check_lir)) {
212 /*
213 * It is actually ok to continue if check_lir
214 * is a read. But it is hard to make a test
215 * case for this so we just stop here to be
216 * conservative.
217 */
218 stop_here = true;
219 }
220 }
221 /* Memory content may be updated. Stop looking now. */
222 if (stop_here) {
223 break;
224 /* The check_lir has been transformed - check the next one */
225 } else if (check_lir->flags.is_nop) {
226 continue;
227 }
228 }
229
230
231 /*
232 * this and check LIRs have no memory dependency. Now check if
233 * their register operands have any RAW, WAR, and WAW
234 * dependencies. If so, stop looking.
235 */
236 if (stop_here == false) {
237 stop_here = CHECK_REG_DEP(stop_use_reg_mask, stop_def_reg_mask, check_lir);
238 }
239
240 if (stop_here == true) {
241 if (cu_->instruction_set == kX86) {
242 // Prevent stores from being sunk between ops that generate ccodes and
243 // ops that use them.
244 uint64_t flags = GetTargetInstFlags(check_lir->opcode);
245 if (sink_distance > 0 && (flags & IS_BRANCH) && (flags & USES_CCODES)) {
246 check_lir = PREV_LIR(check_lir);
247 sink_distance--;
248 }
249 }
250 DEBUG_OPT(dump_dependent_insn_pair(this_lir, check_lir, "REG CLOBBERED"));
251 /* Only sink store instructions */
252 if (sink_distance && !is_this_lir_load) {
253 LIR* new_store_lir =
Vladimir Marko83cc7ae2014-02-12 18:02:05 +0000254 static_cast<LIR*>(arena_->Alloc(sizeof(LIR), kArenaAllocLIR));
Brian Carlstrom7940e442013-07-12 13:46:57 -0700255 *new_store_lir = *this_lir;
256 /*
257 * Stop point found - insert *before* the check_lir
258 * since the instruction list is scanned in the
259 * top-down order.
260 */
261 InsertLIRBefore(check_lir, new_store_lir);
buzbee252254b2013-09-08 16:20:53 -0700262 NopLIR(this_lir);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700263 }
264 break;
265 } else if (!check_lir->flags.is_nop) {
266 sink_distance++;
267 }
268 }
269 }
270}
271
272/*
273 * Perform a pass of bottom-up walk, from the second instruction in the
274 * superblock, to try to hoist loads to earlier slots.
275 */
Brian Carlstrom2ce745c2013-07-17 17:44:30 -0700276void Mir2Lir::ApplyLoadHoisting(LIR* head_lir, LIR* tail_lir) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700277 LIR* this_lir, *check_lir;
278 /*
279 * Store the list of independent instructions that can be hoisted past.
280 * Will decide the best place to insert later.
281 */
282 LIR* prev_inst_list[MAX_HOIST_DISTANCE];
283
284 /* Empty block */
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700285 if (head_lir == tail_lir) {
286 return;
287 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700288
289 /* Start from the second instruction */
290 for (this_lir = NEXT_LIR(head_lir); this_lir != tail_lir; this_lir = NEXT_LIR(this_lir)) {
buzbee409fe942013-10-11 10:49:56 -0700291 if (IsPseudoLirOp(this_lir->opcode)) {
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700292 continue;
293 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700294
295 uint64_t target_flags = GetTargetInstFlags(this_lir->opcode);
296 /* Skip non-interesting instructions */
buzbee1da1e2f2013-11-15 13:37:01 -0800297 if (!(target_flags & IS_LOAD) ||
298 (this_lir->flags.is_nop == true) ||
Razvan A Lupusoru99ad7232014-02-25 17:41:08 -0800299 ((target_flags & (REG_DEF0 | REG_DEF1)) == (REG_DEF0 | REG_DEF1)) ||
300 ((target_flags & (IS_STORE | IS_LOAD)) == (IS_STORE | IS_LOAD))) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700301 continue;
302 }
303
buzbeeb48819d2013-09-14 16:15:25 -0700304 uint64_t stop_use_all_mask = this_lir->u.m.use_mask;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700305
306 if (cu_->instruction_set != kX86) {
307 /*
308 * Branches for null/range checks are marked with the true resource
309 * bits, and loads to Dalvik registers, constant pools, and non-alias
310 * locations are safe to be hoisted. So only mark the heap references
311 * conservatively here.
312 */
313 if (stop_use_all_mask & ENCODE_HEAP_REF) {
314 stop_use_all_mask |= GetPCUseDefEncoding();
315 }
316 }
317
318 /* Similar as above, but just check for pure register dependency */
319 uint64_t stop_use_reg_mask = stop_use_all_mask & ~ENCODE_MEM;
buzbeeb48819d2013-09-14 16:15:25 -0700320 uint64_t stop_def_reg_mask = this_lir->u.m.def_mask & ~ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700321
322 int next_slot = 0;
323 bool stop_here = false;
324
325 /* Try to hoist the load to a good spot */
326 for (check_lir = PREV_LIR(this_lir); check_lir != head_lir; check_lir = PREV_LIR(check_lir)) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700327 /*
328 * Skip already dead instructions (whose dataflow information is
329 * outdated and misleading).
330 */
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700331 if (check_lir->flags.is_nop) {
332 continue;
333 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700334
buzbeeb48819d2013-09-14 16:15:25 -0700335 uint64_t check_mem_mask = check_lir->u.m.def_mask & ENCODE_MEM;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700336 uint64_t alias_condition = stop_use_all_mask & check_mem_mask;
337 stop_here = false;
338
339 /* Potential WAR alias seen - check the exact relation */
340 if (check_mem_mask != ENCODE_MEM && alias_condition != 0) {
341 /* We can fully disambiguate Dalvik references */
342 if (alias_condition == ENCODE_DALVIK_REG) {
343 /* Must alias or partually overlap */
buzbeeb48819d2013-09-14 16:15:25 -0700344 if ((check_lir->flags.alias_info == this_lir->flags.alias_info) ||
Brian Carlstrom7940e442013-07-12 13:46:57 -0700345 IsDalvikRegisterClobbered(this_lir, check_lir)) {
346 stop_here = true;
347 }
348 /* Conservatively treat all heap refs as may-alias */
349 } else {
350 DCHECK_EQ(alias_condition, ENCODE_HEAP_REF);
351 stop_here = true;
352 }
353 /* Memory content may be updated. Stop looking now. */
354 if (stop_here) {
355 prev_inst_list[next_slot++] = check_lir;
356 break;
357 }
358 }
359
360 if (stop_here == false) {
361 stop_here = CHECK_REG_DEP(stop_use_reg_mask, stop_def_reg_mask,
362 check_lir);
363 }
364
365 /*
366 * Store the dependent or non-pseudo/indepedent instruction to the
367 * list.
368 */
buzbee409fe942013-10-11 10:49:56 -0700369 if (stop_here || !IsPseudoLirOp(check_lir->opcode)) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700370 prev_inst_list[next_slot++] = check_lir;
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700371 if (next_slot == MAX_HOIST_DISTANCE) {
372 break;
373 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700374 }
375
376 /* Found a new place to put the load - move it here */
377 if (stop_here == true) {
378 DEBUG_OPT(dump_dependent_insn_pair(check_lir, this_lir "HOIST STOP"));
379 break;
380 }
381 }
382
383 /*
384 * Reached the top - use head_lir as the dependent marker as all labels
385 * are barriers.
386 */
387 if (stop_here == false && next_slot < MAX_HOIST_DISTANCE) {
388 prev_inst_list[next_slot++] = head_lir;
389 }
390
391 /*
392 * At least one independent instruction is found. Scan in the reversed
393 * direction to find a beneficial slot.
394 */
395 if (next_slot >= 2) {
396 int first_slot = next_slot - 2;
397 int slot;
398 LIR* dep_lir = prev_inst_list[next_slot-1];
399 /* If there is ld-ld dependency, wait LDLD_DISTANCE cycles */
buzbee409fe942013-10-11 10:49:56 -0700400 if (!IsPseudoLirOp(dep_lir->opcode) &&
Brian Carlstrom7940e442013-07-12 13:46:57 -0700401 (GetTargetInstFlags(dep_lir->opcode) & IS_LOAD)) {
402 first_slot -= LDLD_DISTANCE;
403 }
404 /*
405 * Make sure we check slot >= 0 since first_slot may be negative
406 * when the loop is first entered.
407 */
408 for (slot = first_slot; slot >= 0; slot--) {
409 LIR* cur_lir = prev_inst_list[slot];
410 LIR* prev_lir = prev_inst_list[slot+1];
411
412 /* Check the highest instruction */
buzbeeb48819d2013-09-14 16:15:25 -0700413 if (prev_lir->u.m.def_mask == ENCODE_ALL) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700414 /*
415 * If the first instruction is a load, don't hoist anything
416 * above it since it is unlikely to be beneficial.
417 */
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700418 if (GetTargetInstFlags(cur_lir->opcode) & IS_LOAD) {
419 continue;
420 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700421 /*
422 * If the remaining number of slots is less than LD_LATENCY,
423 * insert the hoisted load here.
424 */
Brian Carlstrom0cd7ec22013-07-17 23:40:20 -0700425 if (slot < LD_LATENCY) {
426 break;
427 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700428 }
429
430 // Don't look across a barrier label
431 if ((prev_lir->opcode == kPseudoTargetLabel) ||
432 (prev_lir->opcode == kPseudoSafepointPC) ||
433 (prev_lir->opcode == kPseudoBarrier)) {
434 break;
435 }
436
437 /*
438 * Try to find two instructions with load/use dependency until
439 * the remaining instructions are less than LD_LATENCY.
440 */
buzbee409fe942013-10-11 10:49:56 -0700441 bool prev_is_load = IsPseudoLirOp(prev_lir->opcode) ? false :
Brian Carlstrom7940e442013-07-12 13:46:57 -0700442 (GetTargetInstFlags(prev_lir->opcode) & IS_LOAD);
buzbeeb48819d2013-09-14 16:15:25 -0700443 if (((cur_lir->u.m.use_mask & prev_lir->u.m.def_mask) && prev_is_load) || (slot < LD_LATENCY)) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700444 break;
445 }
446 }
447
448 /* Found a slot to hoist to */
449 if (slot >= 0) {
450 LIR* cur_lir = prev_inst_list[slot];
451 LIR* new_load_lir =
Vladimir Marko83cc7ae2014-02-12 18:02:05 +0000452 static_cast<LIR*>(arena_->Alloc(sizeof(LIR), kArenaAllocLIR));
Brian Carlstrom7940e442013-07-12 13:46:57 -0700453 *new_load_lir = *this_lir;
454 /*
455 * Insertion is guaranteed to succeed since check_lir
456 * is never the first LIR on the list
457 */
458 InsertLIRBefore(cur_lir, new_load_lir);
buzbee252254b2013-09-08 16:20:53 -0700459 NopLIR(this_lir);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700460 }
461 }
462 }
463}
464
Brian Carlstrom2ce745c2013-07-17 17:44:30 -0700465void Mir2Lir::ApplyLocalOptimizations(LIR* head_lir, LIR* tail_lir) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700466 if (!(cu_->disable_opt & (1 << kLoadStoreElimination))) {
467 ApplyLoadStoreElimination(head_lir, tail_lir);
468 }
469 if (!(cu_->disable_opt & (1 << kLoadHoisting))) {
470 ApplyLoadHoisting(head_lir, tail_lir);
471 }
472}
473
Brian Carlstrom7940e442013-07-12 13:46:57 -0700474} // namespace art