OSDN Git Service

Recognize for (int i = 0; i != x.length; i++) loops
authorAart Bik <ajcbik@google.com>
Wed, 24 Feb 2016 22:17:53 +0000 (14:17 -0800)
committerAart Bik <ajcbik@google.com>
Thu, 25 Feb 2016 17:26:57 +0000 (09:26 -0800)
commit358af839c60db9e178f0b0bb9d430711c071b82a
treebfeb6c0fe553161a6d3df57f2e35401ea36e94ff
parent4e4e64511e530db37b33f450016afe49db3c4b20
Recognize for (int i = 0; i != x.length; i++) loops

Rationale:
Idiom occurs in real-life and is very straightforwardly
recognized by existing induction/range machinery.

Change-Id: I965a16e9de72f3523ea5023d30ed1c4e47ed5010
compiler/optimizing/induction_var_analysis.cc
compiler/optimizing/induction_var_range.cc
test/530-checker-loops/src/Main.java