summaryrefslogtreecommitdiff
path: root/compiler/dex/mir_optimization.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2014-10-13 18:00:28 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-10-13 18:00:29 +0000
commitc39eb4aef19b7fe64283fb3ae7ce6d13cd6c8294 (patch)
tree14850b67072afaa67273c1e9e9b75e8c9c898421 /compiler/dex/mir_optimization.cc
parent72ab3cadce5002163783d7b76781b9f26413b773 (diff)
parent7cd01f5d496c384874ea8c21eafb2b6479833e6a (diff)
Merge "Add regression test for null check elimination."
Diffstat (limited to 'compiler/dex/mir_optimization.cc')
-rw-r--r--compiler/dex/mir_optimization.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/dex/mir_optimization.cc b/compiler/dex/mir_optimization.cc
index 2ac0b51a89..84c056daf3 100644
--- a/compiler/dex/mir_optimization.cc
+++ b/compiler/dex/mir_optimization.cc
@@ -929,6 +929,8 @@ bool MIRGraph::EliminateNullChecks(BasicBlock* bb) {
mir->optimization_flags |= MIR_IGNORE_NULL_CHECK;
} else {
// Do the null check.
+ // TODO: Rewrite the pass to converge first before doing any modifications so that
+ // we don't lose the MIR_IGNORE_NULL_CHECK here if previously set by some other pass.
mir->optimization_flags &= ~MIR_IGNORE_NULL_CHECK;
// Mark s_reg as null-checked
ssa_regs_to_check->ClearBit(src_sreg);