OSDN Git Service

Move PC-relative addressing bases to a better position.
authorVladimir Marko <vmarko@google.com>
Wed, 25 Nov 2015 15:25:10 +0000 (15:25 +0000)
committerVladimir Marko <vmarko@google.com>
Tue, 1 Dec 2015 11:38:59 +0000 (11:38 +0000)
commitfb337ea53d1e6fe68b24217a9ea95e9f544ef697
treeb1d6f4225473c613b1df7f179d0146e7d208c297
parentb4536b7de576b20c74c612406c5d3132998075ef
Move PC-relative addressing bases to a better position.

Move the platform-specific HX86ComputeBaseMethodAddress and
HArmDexCacheArraysBase to the latest dominator of their uses
outside any loop. This brings the base closer to the first
use (previously, it was in the entry block) and relieves
some pressure on the register allocator while avoiding
recalculation of the base in a loop.

Change-Id: I231aa81eb5b4de9af2d0167054d06b65eb18a636
compiler/optimizing/dex_cache_array_fixups_arm.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
compiler/optimizing/pc_relative_fixups_x86.cc