OSDN Git Service

Quick: Avoid unnecessary GVN work in release builds.
authorVladimir Marko <vmarko@google.com>
Sat, 25 Apr 2015 16:00:45 +0000 (17:00 +0100)
committerVladimir Marko <vmarko@google.com>
Mon, 27 Apr 2015 14:41:04 +0000 (15:41 +0100)
commitf725550c8df90f8ec07395d9be5177a4be591c12
treebfecc5637c57f4593e0bd73c11ad7a8887f4f988
parenta0ee862288b702468f8c2b6d0ad0f1c61be0b483
Quick: Avoid unnecessary GVN work in release builds.

In GVN's post-processing phase, compare LVNs only in debug
builds as they should be equal anyway.

Remove the Gate() from GVN cleanup pass and remove the
DCHECK() from MIRGraph::GlobalValueNumberingCleanup()
to make it a no-op if the GVN didn't run.

Bug: 16398693
Change-Id: Ia4f1e7e3ecf12d0305966c86e0e7dbae61dab0b7
compiler/dex/bb_optimizations.cc
compiler/dex/bb_optimizations.h
compiler/dex/global_value_numbering.cc
compiler/dex/mir_optimization.cc