diff options
author | Wei Jin <wejin@google.com> | 2014-05-29 18:04:29 -0700 |
---|---|---|
committer | buzbee <buzbee@google.com> | 2014-06-05 15:04:51 -0700 |
commit | 04f4d8abe45d6e79eca983e057de76aea24b7df9 (patch) | |
tree | ea037b8bffd0568edbb835fd1ed06740734375f8 /compiler/driver/compiler_driver-inl.h | |
parent | 86e48ce0e82c13d8af470e7c2abe1bfb3c1e0136 (diff) | |
download | art-04f4d8abe45d6e79eca983e057de76aea24b7df9.zip art-04f4d8abe45d6e79eca983e057de76aea24b7df9.tar.gz art-04f4d8abe45d6e79eca983e057de76aea24b7df9.tar.bz2 |
Add an optimization for removing redundant suspend tests in ART
This CL:
(1) eliminates redundant suspend checks (dominated by another check),
(2) removes the special treatment of the R4 register, which got
reset on every native call, possibly yielding long execution
sequences without any suspend checks, and
(3) fixes the absence of suspend checks in leaf methods.
(2) and (3) increase the frequency of suspend checks, which improves
the performance of GC and the accuracy of profile data. To
compensate for the increased number of checks, we implemented an
optimization that leverages dominance information to remove
redundant suspend checks on back edges. Based on the results of
running the Caffeine benchmark on Nexus 7, the patch performs
roughly 30% more useful suspend checks, spreading them much more
evenly along the execution trace, while incurring less than 1%
overhead. For flexibility consideration, this CL defines two flags
to control the enabling of optimizations. The original
implementation is the default.
Change-Id: I31e81a5b3c53030444dbe0434157274c9ab8640f
Signed-off-by: Wei Jin <wejin@google.com>
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
0 files changed, 0 insertions, 0 deletions