OSDN Git Service

[optimzing] Fix codegen bug and improve type propagation
authorCalin Juravle <calin@google.com>
Mon, 20 Apr 2015 17:30:42 +0000 (18:30 +0100)
committerCalin Juravle <calin@google.com>
Tue, 21 Apr 2015 12:59:33 +0000 (13:59 +0100)
commitb3306642f42d47ddb4d021a2f48ce9b1bd235857
tree5b997bad1c6021c1ab777c2250816f1c22e930db
parentb9791aa606834160b085dec7c5b32ccbeaf9a186
[optimzing] Fix codegen bug and improve type propagation

- don't bound the type if there are no relevant uses
- insert the bound type in the bounded block (this allows for condition
materialization without changing the logic there).
- add more comments
- add tests for BoundType generation
- fix GenerateTestAndBranch

Change-Id: I5c1fdda104da4a46775d207270220d410234a472
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/reference_type_propagation.cc
test/477-checker-bound-type/expected.txt [new file with mode: 0644]
test/477-checker-bound-type/info.txt [new file with mode: 0644]
test/477-checker-bound-type/src/Main.java [new file with mode: 0644]