summaryrefslogtreecommitdiff
path: root/compiler/dex/mir_optimization.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-04-28 10:36:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-04-28 10:36:38 +0000
commit3adfc4bbe6c42d574bd2069d8e38a13d5ad98ccf (patch)
tree5fbef12bfed0b6a0d548e0e9a488231a04ba039d /compiler/dex/mir_optimization.cc
parent80613ffd5699e6207d6b1264d600a0fc168074ce (diff)
parentf725550c8df90f8ec07395d9be5177a4be591c12 (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.cc2
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();
}