commit | 42ae05ad52179089674f7373b9e7de1244240b48 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Tue May 16 09:31:37 2017 -0700 |
committer | Andreas Gampe <agampe@google.com> | Tue May 16 18:25:31 2017 -0700 |
tree | 05f790bc369ea04f4f88c87af65d16a99b181895 | |
parent | 536e54a6af85127d7f17037360deb08e0a7dc4eb [diff] |
ART: Improve RegType::IsAssignableFrom Change the chained if-else-if to a switch by introducing an AssignmentType enum and corresponding getter in RegType. Reduces instruction count from 39.4B to 39.3B and branch count from 9.6B to 9.5B when compiling a well-known large app with the verify compiler filter. Bug: 10921004 Test: m test-art-host Change-Id: I2d72df78f281715015829ff555a3c4c2446c03be