OSDN Git Service

Fix null pointer check elimination for catch entries.
authorVladimir Marko <vmarko@google.com>
Fri, 11 Jul 2014 13:44:36 +0000 (14:44 +0100)
committerVladimir Marko <vmarko@google.com>
Wed, 23 Jul 2014 13:26:00 +0000 (14:26 +0100)
commit293caab66e9b1e4129843f6bdeb31353bb77ccef
tree75d362e6e12d88f274dbca426d49e1b788ca48d1
parentf9d6aede77c700118e225f8312cd888262b77862
Fix null pointer check elimination for catch entries.

Remove the special treatment of catch blocks for null
pointer check elimination and class initialization check
elimination. In both cases this can help optimizing
previously missed cases. In the null check case, this
avoids incorrect optimization as exposed by the new test.

Bug: 16230771

(cherry picked from 0a810d2eab27cd097ebd09a44f0ce83aa608285b)

Change-Id: I0764f47fa0aacfa89904a82e9528177b3ad67e31
compiler/dex/mir_optimization.cc
compiler/dex/mir_optimization_test.cc
test/083-compiler-regressions/expected.txt
test/083-compiler-regressions/src/Main.java