OSDN Git Service

X86: Fix alias info in GenInlinedIndexOf().
authorVladimir Marko <vmarko@google.com>
Tue, 19 Aug 2014 14:00:34 +0000 (15:00 +0100)
committerVladimir Marko <vmarko@google.com>
Wed, 20 Aug 2014 12:12:01 +0000 (13:12 +0100)
commitb5874a47a4d2c4d2971116b031b4068021ffda05
tree351df8959bfdfbd786f9bd92e03998d52f93b480
parentd6ee5033433619a893a8f20319efcf8c8b1d1016
X86: Fix alias info in GenInlinedIndexOf().

For 32-bit X86, GenInlinedIndexOf() pushes and pops EDI. In
one branch it then calls Load32Disp() with adjusted stack
offset. That calculates wrong alias_info for the generated
insn. If left unfixed, this could confuse load hoisting.

Bug: 17128502

(cherry picked from commit 74de63bb1cc275b411cae28a96f9b3a78b939bc2)

Change-Id: I5dc82b7aae9e9655e75843a952b8ebb04269f46b
compiler/dex/quick/x86/target_x86.cc