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:36:36 +0000 (13:36 +0100)
commitb016c6dd3c30b04104a0a43dc294ce93e5f63874
treebee1f9c28f402033882906d3210b0bcd5af3a25f
parent76ca82063ac62488fefb0b12d40026f4ebb2e198
ART: DCE should know that array-length can throw NPE

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

Bug: 22521944
Change-Id: I6f961560ccbbf81f57f1c597828f2ee18e2c3054
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
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]