OSDN Git Service

Rename registers on inlined instructions that use wide operands.
authorBen Cheng <bccheng@android.com>
Mon, 16 Aug 2010 21:08:49 +0000 (14:08 -0700)
committerBen Cheng <bccheng@android.com>
Mon, 16 Aug 2010 21:15:09 +0000 (14:15 -0700)
commit52d4cd28a5d6d946934704e11e1d41450c10aa05
tree684efcb28f7d7f1cfae7abbd99c027b1fa9b31b2
parentd012d06b0673c3da9d23b1816ff5a325576eb9b3
Rename registers on inlined instructions that use wide operands.

For example, v1 in the callee should be v7 in the caller.

Before:
div-double v7, v8, v10
iput-wide-quick (C) v1, v6, (#136) <- v1 should be renamed
invoke-virtual-quick (PI) v6, v7, v8

After:
div-double v7, v8, v10
iput-wide-quick (C) v7, v6, (#136)
invoke-virtual-quick (PI) v6, v7, v8

Bug: 2907602

Change-Id: I21b9a45f8e422148d45de98c1ec9acbfd9783cc6
vm/compiler/InlineTransformation.c