Use dex cache from compilation unit in HInstructionBuilder.
Avoid calling costly ClassLinker::FindDexCache() from HInstructionBuilder, the dex cache is already available in the compilation unit. Compiling Nexus 5 boot image on host under perf(1) shows that the time spent in FindDexCache() is reduced from about 2% to well under 0.2%, 90% of the remaining hits coming from ReferenceTypePropagation which doesn't have access to the compilation unit. Bug: 28173563 (cherry picked from commit 3cd50df1) Change-Id: Ife0dba2dd8f49bd52f86ddadf06ee787bad03d66
Loading
Please sign in to comment