diff options
| author | 2015-04-15 11:53:08 +0000 | |
|---|---|---|
| committer | 2015-04-15 11:53:08 +0000 | |
| commit | e1d0b80eef04606e426377f30e7e862b3337e2c6 (patch) | |
| tree | 0799cd859304fd6f4a393698c1adc34e3b961b75 /compiler/optimizing/boolean_simplifier.cc | |
| parent | 858d28ca2e73a785977f53141e775a7d4841b89d (diff) | |
| parent | 66d126ea06ce3f507d86ca5f0d1f752170ac9be1 (diff) | |
Merge "ART: Implement HBooleanNot instruction"
Diffstat (limited to 'compiler/optimizing/boolean_simplifier.cc')
| -rw-r--r-- | compiler/optimizing/boolean_simplifier.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/boolean_simplifier.cc b/compiler/optimizing/boolean_simplifier.cc index be432c5a20..06328f2490 100644 --- a/compiler/optimizing/boolean_simplifier.cc +++ b/compiler/optimizing/boolean_simplifier.cc @@ -73,8 +73,8 @@ static HInstruction* GetOppositeCondition(HInstruction* cond) { } } else { // General case when 'cond' is another instruction of type boolean. - // Negate with 'cond == 0'. - return new (allocator) HEqual(cond, graph->GetIntConstant(0)); + DCHECK_EQ(cond->GetType(), Primitive::Type::kPrimBoolean); + return new (allocator) HBooleanNot(cond); } } |