OSDN Git Service

Fix bug in optimizing around instanceof.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 17 Jun 2015 10:35:11 +0000 (11:35 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 17 Jun 2015 10:35:11 +0000 (11:35 +0100)
commit7cb499b1af1575c854860b0d6a103c4a2a59a569
tree53de01908990954cdf0f46168cb437d5c12ebf2e
parent4b9a93e7774d6650f6f3b637d018109d6fe97546
Fix bug in optimizing around instanceof.

We were too aggressive when removing instanceof. We should
not remove it when there is one of the two static types that
is an interface.

Change-Id: I1fd80915b99b094f7b4393e7adb2b160201b30d5
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/instruction_simplifier.cc
test/500-instanceof/expected.txt [new file with mode: 0644]
test/500-instanceof/info.txt [new file with mode: 0644]
test/500-instanceof/src/Main.java [new file with mode: 0644]