OSDN Git Service

Fix a bug in the insertion of parallel move.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 29 Sep 2014 09:33:25 +0000 (10:33 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 29 Sep 2014 10:04:07 +0000 (11:04 +0100)
commit740475d5f45b8caa2c3c6fc51e657ecf4f3547e5
tree81196b753045fa16c13a4c1106031c1f28d9d233
parent13c4e8f4ef687f650aa76fb15ab12762d5a85602
Fix a bug in the insertion of parallel move.

To make sure we do not connect interval siblings in the
same parallel move, I added a new field in MoveOperands
that tells for which instruction this move is for.
A parallel move should not contains moves for the same instructions.

The checks revealed a bug when connecting siblings, where
we would choose the wrong parallel move.

Change-Id: I70f27ec120886745c187071453c78da4c47c1dd2
compiler/optimizing/nodes.h
compiler/optimizing/parallel_move_test.cc
compiler/optimizing/register_allocator.cc
compiler/optimizing/register_allocator.h