OSDN Git Service

Simplify unsigned comparisons against zero (with unit tests).
authorAart Bik <ajcbik@google.com>
Thu, 29 Oct 2015 00:49:07 +0000 (17:49 -0700)
committerAart Bik <ajcbik@google.com>
Thu, 29 Oct 2015 18:04:13 +0000 (11:04 -0700)
commit96709f17347cb7a6aae15816244d2200ca95a649
treec193a1378acb0968318a47ade5eb63121e6c9b3d
parentf7b7f9984da66149e5fe05713845961d7b069a23
Simplify unsigned comparisons against zero (with unit tests).

Rationale: Such cases occurs a lot after dynamic
           bound check optimization (where the lower bound
           is test against upper bound). Removing this
           unnecessary test improves quality of code.

Change-Id: I3e4dc9f9d799aad342e1c344013ac60fcc3073ac
compiler/optimizing/constant_folding.cc
compiler/optimizing/constant_folding_test.cc