commit | 93445689c714e53cabf347da4321ecf3023e926c | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Mon Oct 06 19:24:02 2014 +0100 |
committer | Roland Levillain <rpl@google.com> | Wed Oct 08 15:25:11 2014 +0100 |
tree | 459c38b3c12b335358278b745f431e68c18d0824 | |
parent | 50940ea8fe668a80c15920d98cae228851ceb990 [diff] |
Fix and improve static evaluation of constant expressions. - Fix the definition of art::HSub::Evaluate. - Qualify Evaluate methods as OVERRIDE. - Evaluate comparisons in a deterministic way: if a comparison is true, always return 1 (instead of letting the compiler return any non-null value). - Better exercise static evaluation of constant expressions in compiler/optimizing/constant_propagation_test.cc. Change-Id: I13d0862e5f4eba1275016fb8c3c17e9aff54408b