diff options
author | 2015-04-28 10:36:38 +0000 | |
---|---|---|
committer | 2015-04-28 10:36:38 +0000 | |
commit | 3adfc4bbe6c42d574bd2069d8e38a13d5ad98ccf (patch) | |
tree | 5fbef12bfed0b6a0d548e0e9a488231a04ba039d /compiler/dex/mir_optimization.cc | |
parent | 80613ffd5699e6207d6b1264d600a0fc168074ce (diff) | |
parent | f725550c8df90f8ec07395d9be5177a4be591c12 (diff) |
Merge "Quick: Avoid unnecessary GVN work in release builds."
Diffstat (limited to 'compiler/dex/mir_optimization.cc')
-rw-r--r-- | compiler/dex/mir_optimization.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/mir_optimization.cc b/compiler/dex/mir_optimization.cc index 25c159f2a1..217dbeeb44 100644 --- a/compiler/dex/mir_optimization.cc +++ b/compiler/dex/mir_optimization.cc @@ -1453,13 +1453,13 @@ void MIRGraph::EliminateDeadCodeEnd() { } void MIRGraph::GlobalValueNumberingCleanup() { + // If the GVN didn't run, these pointers should be null and everything is effectively no-op. delete temp_.gvn.dce; temp_.gvn.dce = nullptr; delete temp_.gvn.gvn; temp_.gvn.gvn = nullptr; temp_.gvn.ifield_ids = nullptr; temp_.gvn.sfield_ids = nullptr; - DCHECK(temp_scoped_alloc_ != nullptr); temp_scoped_alloc_.reset(); } |