summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator_arm64.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-02-16 11:15:43 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-02-18 09:53:32 +0000
commitdc23d8318db08cb42e20f1d16dbc416798951a8b (patch)
treee7a883bb3263ccb971898df98bc58700604c1d1d /compiler/optimizing/code_generator_arm64.h
parente5f5953e744060fde3b4489cea4d934d529e3e32 (diff)
downloadandroid_art-dc23d8318db08cb42e20f1d16dbc416798951a8b.tar.gz
android_art-dc23d8318db08cb42e20f1d16dbc416798951a8b.tar.bz2
android_art-dc23d8318db08cb42e20f1d16dbc416798951a8b.zip
Avoid generating jmp +0.
When a block branches to a non-following block, but blocks in-between do branch to it, we can avoid doing the branch. Change-Id: I9b343f662a4efc718cd4b58168f93162a24e1219
Diffstat (limited to 'compiler/optimizing/code_generator_arm64.h')
-rw-r--r--compiler/optimizing/code_generator_arm64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_arm64.h b/compiler/optimizing/code_generator_arm64.h
index 2e937e2c0f..afb7fc3718 100644
--- a/compiler/optimizing/code_generator_arm64.h
+++ b/compiler/optimizing/code_generator_arm64.h
@@ -214,7 +214,7 @@ class CodeGeneratorARM64 : public CodeGenerator {
void Bind(HBasicBlock* block) OVERRIDE;
vixl::Label* GetLabelOf(HBasicBlock* block) const {
- return block_labels_ + block->GetBlockId();
+ return CommonGetLabelOf<vixl::Label>(block_labels_, block);
}
void Move(HInstruction* instruction, Location location, HInstruction* move_for) OVERRIDE;