OSDN Git Service

Improve Thumb2 branch/load-literal fixup performance.
authorVladimir Marko <vmarko@google.com>
Tue, 14 Jul 2015 10:58:38 +0000 (11:58 +0100)
committerVladimir Marko <vmarko@google.com>
Fri, 17 Jul 2015 12:00:04 +0000 (13:00 +0100)
commit6b756b5b7ad59358366268c5213a0a0f98637a18
tree621206c40da4c405af73ccc7dc7db850c621d98c
parentd1665b7a689086ec5b33a69a05313c46ea1a95e4
Improve Thumb2 branch/load-literal fixup performance.

Replace per-Fixup dependents vectors with a single array
held by the assembler and referenced by the Fixups to avoid
the cost of many allocations with the default allocator.

This improves the compilation time of the boot.oat on N5,
AOSP ToT, by about ~3% as measured by the "Compile Time"
reported with --dump-timing (~2% of the "dex2oat took...").

Change-Id: I7121cdef32d9edc6d287e602d774ffe03f530d18
compiler/utils/arm/assembler_thumb2.cc
compiler/utils/arm/assembler_thumb2.h