OSDN Git Service

Fix a bug in type propagation.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 14 Apr 2015 14:11:57 +0000 (15:11 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 14 Apr 2015 14:59:12 +0000 (15:59 +0100)
commit5f4886aad49b48cdc6945e3094549145c0914fe8
tree792a11dfdd9f943017b575e99557da36e5bc43bd
parente015a31e509c3f4de8a90b57b77329ba6609ce2f
Fix a bug in type propagation.

If a phi requests its inputs to be of a certain type, the inputs need
to propagate that type to their users, as those users might be
phis.

Bug report and test courtesy of Serguei I Katkov.

Change-Id: I79baac271566ec4fa684c1edf11a1b3383d896a9
compiler/optimizing/primitive_type_propagation.cc
compiler/optimizing/primitive_type_propagation.h
test/472-type-propagation/expected.txt [new file with mode: 0644]
test/472-type-propagation/info.txt [new file with mode: 0644]
test/472-type-propagation/src/Main.java [new file with mode: 0644]