OSDN Git Service

Fix loop optimization in the presence of environment uses.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 22 Jun 2017 10:56:01 +0000 (11:56 +0100)
committerNarayan Kamath <narayan@google.com>
Thu, 22 Jun 2017 17:51:38 +0000 (17:51 +0000)
commit565cd4e9861d44c1b24b4b2054446edf3118cbba
tree99e6abb0184683a01b76b2aa366ab5def16159d1
parentcd3d23c17b00ddc9768b3c60886d92a93f2d331a
Fix loop optimization in the presence of environment uses.

We should not remove instructions that have deoptimize as
users, or that have environment uses in a debuggable setup.

bug: 62536525
bug: 33775412
Test: 656-loop-deopt

(cherry picked from commit 1a0a519c82044ec3e6d3910ff0602b11292de47a)

Change-Id: I213dc85ac644619b041f0fa408e112352efcef2d
compiler/optimizing/loop_optimization.cc
compiler/optimizing/loop_optimization.h
test/656-loop-deopt/expected.txt [new file with mode: 0644]
test/656-loop-deopt/info.txt [new file with mode: 0644]
test/656-loop-deopt/src/Main.java [new file with mode: 0644]