OSDN Git Service

ART: Simplify Ifs with BooleanNot condition
authorDavid Brazdil <dbrazdil@google.com>
Mon, 27 Apr 2015 12:54:09 +0000 (13:54 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Mon, 27 Apr 2015 16:00:58 +0000 (17:00 +0100)
commit769c9e539da8ca80aa914cd12276aa5bd79148ee
tree9aadf98a3fcbf7909f76c53fa2ee036ebda00304
parent0fbfe6f92a2481daf914043262b5854e65d8c3cc
ART: Simplify Ifs with BooleanNot condition

If statements with negated condition can be simplified by removing the
negation and swapping the true and false branches.

Change-Id: I197afbc79fb7344d73b7b85d3611e7ca2519717f
compiler/optimizing/boolean_simplifier.cc
compiler/optimizing/boolean_simplifier.h
compiler/optimizing/nodes.h
test/458-checker-instruction-simplification/src/Main.java
test/463-checker-boolean-simplifier/src/Main.java