diff options
author | 2013-09-07 09:12:27 -0700 | |
---|---|---|
committer | 2013-09-08 13:37:56 -0700 | |
commit | 28c2300d9a85f4e7288fb5d94280332f923b4df3 (patch) | |
tree | f4b643efa6385bcce32250e471b6a13c09338eb2 /compiler/dex/quick/codegen_util.cc | |
parent | 9f799db0e4124d3158cde6ead854289fba10f3aa (diff) |
More compile-time tuning
Small, but measurable, improvement.
Change-Id: Ie3c7180f9f9cbfb1729588e7a4b2cf6c6d291c95
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r-- | compiler/dex/quick/codegen_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index 9e0159ecc0..e9db6a68d0 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -696,11 +696,11 @@ int Mir2Lir::AssignInsnOffsets() { for (lir = first_lir_insn_; lir != NULL; lir = NEXT_LIR(lir)) { lir->offset = offset; - if (lir->opcode >= 0) { + if (LIKELY(lir->opcode >= 0)) { if (!lir->flags.is_nop) { offset += lir->flags.size; } - } else if (lir->opcode == kPseudoPseudoAlign4) { + } else if (UNLIKELY(lir->opcode == kPseudoPseudoAlign4)) { if (offset & 0x2) { offset += 2; lir->operands[0] = 1; |