Commit 42ae05ad authored by Andreas Gampe's avatar Andreas Gampe
Browse files

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
parent 536e54a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment