OSDN Git Service

Fix CopyRegInfo to keep live/dirty flags of new registers.
authorChao-ying Fu <chao-ying.fu@intel.com>
Thu, 27 Mar 2014 21:17:28 +0000 (14:17 -0700)
committerbuzbee <buzbee@google.com>
Thu, 27 Mar 2014 22:55:11 +0000 (15:55 -0700)
commit3d325c6700509c37d85f21a94575d7605812e806
tree633e04019c357b281043edfd594b2642618541ac
parent0fd52d5d0cf01e5a109851098a43a79f5615dc0f
Fix CopyRegInfo to keep live/dirty flags of new registers.

CopyRegInfo should not change live/dirty flags of new registgers.
Otherwise, it will lead to incorrectly clobbering these live registers
that are not live actually, and then allocating them to another usage.

Change-Id: Ia9f055b33a11a6d70c0aca1a9fe8639ecfb09464
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
compiler/dex/quick/ralloc_util.cc
test/083-compiler-regressions/expected.txt
test/083-compiler-regressions/src/Main.java