diff options
author | Roland Levillain <rpl@google.com> | 2016-03-24 10:25:51 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-03-24 10:25:51 +0000 |
commit | 0ced281ae6216c29f57ca0f8b7388a722e8da97b (patch) | |
tree | b7f8273bb117c8ec8f8546ed937a8c0a96d2e5de /compiler/optimizing/code_generator_mips.cc | |
parent | 843a65556616183a36792bbcc1632c6d8d0e78b2 (diff) | |
parent | 1a65388f1d86bb232c2e44fecb44cebe13105d2e (diff) |
Merge "Clean up art::HConstant predicates."
Diffstat (limited to 'compiler/optimizing/code_generator_mips.cc')
-rw-r--r-- | compiler/optimizing/code_generator_mips.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/code_generator_mips.cc b/compiler/optimizing/code_generator_mips.cc index 684d89f574..a29d8394db 100644 --- a/compiler/optimizing/code_generator_mips.cc +++ b/compiler/optimizing/code_generator_mips.cc @@ -3271,13 +3271,13 @@ void InstructionCodeGeneratorMIPS::GenerateTestAndBranch(HInstruction* instructi // Nothing to do. The code always falls through. return; } else if (cond->IsIntConstant()) { - // Constant condition, statically compared against 1. - if (cond->AsIntConstant()->IsOne()) { + // Constant condition, statically compared against "true" (integer value 1). + if (cond->AsIntConstant()->IsTrue()) { if (true_target != nullptr) { __ B(true_target); } } else { - DCHECK(cond->AsIntConstant()->IsZero()); + DCHECK(cond->AsIntConstant()->IsFalse()) << cond->AsIntConstant()->GetValue(); if (false_target != nullptr) { __ B(false_target); } |