OSDN Git Service

Improved induction var and range analysis around types.
authorAart Bik <ajcbik@google.com>
Fri, 16 Dec 2016 21:57:52 +0000 (13:57 -0800)
committerAart Bik <ajcbik@google.com>
Mon, 19 Dec 2016 18:57:37 +0000 (10:57 -0800)
commite6bd0272b43bf73faabc64abc9c51ab8ed128308
treed75a15baadf77a859cec6540d7cd10ce998e955a
parent2c43590dc2bb7fb4a3a015b1b65543bb8705ffe8
Improved induction var and range analysis around types.

Rationale:
Lots of code should not depend on int only. This CL generalizes
the kinds of types that can be optimized after analysis. As part
of the CL, however, a minor cleanup regarding type safety of the
stored induction var analysis results is required. This further
improved our int benchmark, and brings the long benchmark up-to-par.

Test: m test-art-host-run-test
Change-Id: I5dfb623dabf9113de90c2f6da99328dda8f8b60b
compiler/optimizing/induction_var_analysis.cc
compiler/optimizing/induction_var_analysis.h
compiler/optimizing/induction_var_analysis_test.cc
compiler/optimizing/induction_var_range.cc
test/530-checker-loops3/src/Main.java
test/618-checker-induction/src/Main.java