diff options
author | 2014-03-31 10:14:40 -0700 | |
---|---|---|
committer | 2014-05-05 09:55:24 -0700 | |
commit | 091cc408e9dc87e60fb64c61e186bea568fc3d3a (patch) | |
tree | b4c19f918a083768b9d940afbb34f9fa388d4e95 /compiler/dex/quick/local_optimizations.cc | |
parent | eafef7db77cfbe6bc05d9b07221c198bc8ceaa8a (diff) |
Quick compiler: allocate doubles as doubles
Significant refactoring of register handling to unify usage across
all targets & 32/64 backends.
Reworked RegStorage encoding to allow expanded use of
x86 xmm registers; removed vector registers as a separate
register type. Reworked RegisterInfo to describe aliased
physical registers. Eliminated quite a bit of target-specific code
and generalized common code.
Use of RegStorage instead of int for registers now propagated down
to the NewLIRx() level. In future CLs, the NewLIRx() routines will
be replaced with versions that are explicit about what kind of
operand they expect (RegStorage, displacement, etc.). The goal
is to eventually use RegStorage all the way to the assembly phase.
TBD: MIPS needs verification.
TBD: Re-enable liveness tracking.
Change-Id: I388c006d5fa9b3ea72db4e37a19ce257f2a15964
Diffstat (limited to 'compiler/dex/quick/local_optimizations.cc')
-rw-r--r-- | compiler/dex/quick/local_optimizations.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/quick/local_optimizations.cc b/compiler/dex/quick/local_optimizations.cc index 4bdc9fa4bb..4a918a138a 100644 --- a/compiler/dex/quick/local_optimizations.cc +++ b/compiler/dex/quick/local_optimizations.cc @@ -163,7 +163,7 @@ void Mir2Lir::ApplyLoadStoreElimination(LIR* head_lir, LIR* tail_lir) { DCHECK(!(check_flags & IS_STORE)); /* Same value && same register type */ if (check_lir->flags.alias_info == this_lir->flags.alias_info && - SameRegType(check_lir->operands[0], native_reg_id)) { + RegStorage::SameRegType(check_lir->operands[0], native_reg_id)) { /* * Different destination register - insert * a move @@ -179,7 +179,7 @@ void Mir2Lir::ApplyLoadStoreElimination(LIR* head_lir, LIR* tail_lir) { /* Must alias */ if (check_lir->flags.alias_info == this_lir->flags.alias_info) { /* Only optimize compatible registers */ - bool reg_compatible = SameRegType(check_lir->operands[0], native_reg_id); + bool reg_compatible = RegStorage::SameRegType(check_lir->operands[0], native_reg_id); if ((is_this_lir_load && is_check_lir_load) || (!is_this_lir_load && is_check_lir_load)) { /* RAR or RAW */ |