OSDN Git Service

ART: DCE should know that array-length can throw NPE
authorSerguei Katkov <serguei.i.katkov@intel.com>
Tue, 14 Jul 2015 13:04:48 +0000 (19:04 +0600)
committerVladimir Marko <vmarko@google.com>
Thu, 16 Jul 2015 12:41:44 +0000 (13:41 +0100)
commit3b7660dea62f2940c8ade2cbc26792d341284dfe
treeb594d24045c14241e82e2cec7715a07ff0260d1f
parent22ee090292e9f2ab0326600a467294ecb8b0e2ad
ART: DCE should know that array-length can throw NPE

array-length can throw NPE so it should be taking into account.

Bug: 22521944
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
(cherry picked from commit b016c6dd3c30b04104a0a43dc294ce93e5f63874)

Change-Id: I6232430a02f9e6d156ad2aae0eb5a630118c0e79
compiler/dex/gvn_dead_code_elimination.cc
compiler/dex/gvn_dead_code_elimination_test.cc
test/140-dce-regression/expected.txt [new file with mode: 0644]
test/140-dce-regression/info.txt [new file with mode: 0644]
test/140-dce-regression/src/Main.java [new file with mode: 0644]