commit | 1e9ec053008fca7eb713815716c69375c37b399c | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Mon Jun 22 10:26:45 2015 +0100 |
committer | David Brazdil <dbrazdil@google.com> | Mon Jun 22 11:07:57 2015 +0100 |
tree | dc7306ce1153648bfc34c67b9475f7fbfbbd18f6 | |
parent | e85647ed00d07169193cc07ffa09e3b70ce38f59 [diff] |
ART: Simplify (Not)Equal bool vs. int to true/false Optimizations on the HGraph may produce comparisons of bool and ints. Instruction simplifier will simplify these only for 0/1 int constants. Since the range of bool is known, comparison against all other int constants can always be determined statically. Change-Id: I502651b7a08edf71ee0b2589069f00def6aacf66