Faster AssembleLIR for ARM.
This also reduces sizeof(LIR) by 4 bytes (32-bit builds).
Change-Id: I0cb81f9bf098dfc50050d5bc705c171af26464ce
diff --git a/compiler/dex/quick/mir_to_lir.h b/compiler/dex/quick/mir_to_lir.h
index bac35aa..8614151 100644
--- a/compiler/dex/quick/mir_to_lir.h
+++ b/compiler/dex/quick/mir_to_lir.h
@@ -131,7 +131,6 @@
struct AssemblyInfo {
LIR* pcrel_next; // Chain of LIR nodes needing pc relative fixups.
- uint8_t bytes[16]; // Encoded instruction bytes.
};
struct LIR {
@@ -151,7 +150,7 @@
} flags;
union {
UseDefMasks m; // Use & Def masks used during optimization.
- AssemblyInfo a; // Instruction encoding used during assembly phase.
+ AssemblyInfo a; // Instruction info used during assembly phase.
} u;
int32_t operands[5]; // [0..4] = [dest, src1, src2, extra, extra2].
};
@@ -340,7 +339,7 @@
return code_buffer_.size() / sizeof(code_buffer_[0]);
}
- bool IsPseudoLirOp(int opcode) {
+ static bool IsPseudoLirOp(int opcode) {
return (opcode < 0);
}