OSDN Git Service

Fix a bug in the register allocator around pair allocation.
authorNicolas Geoffray <ngeoffray@google.com>
Sat, 8 Aug 2015 01:13:03 +0000 (18:13 -0700)
committerNicolas Geoffray <ngeoffray@google.com>
Sat, 8 Aug 2015 21:43:41 +0000 (14:43 -0700)
commit6e9c66e099654b63ed3648bda2daeaf0a862f047
tree02e1640e4b4040a5133e27cd127403fea8f3cfdf
parentd333389cf635e002658a77e64547631e05004447
Fix a bug in the register allocator around pair allocation.

We may get hints that do not work with the current implementation
of register pairs, which forces the allocation of (low + 1)
for the high register. For example, if the hint is EBX, we will
allocate ESP for the high register.

bug:23043730

(cherry picked from commit f29758111e71a7d14f3e52d78773561a5d59961f)

Change-Id: Ib395e36616017a87d3055218d72417f4e9ff6501
compiler/optimizing/register_allocator.cc
test/528-long-hint/expected.txt [new file with mode: 0644]
test/528-long-hint/info.txt [new file with mode: 0644]
test/528-long-hint/src/Main.java [new file with mode: 0644]