summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_simplifier.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-05-08 12:13:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-05-08 12:13:53 +0000
commitb865d9af3bb5f4777dbe9cbd60cdb2a8fe5f0557 (patch)
tree8cad1b90006fa620dec995b71c80ee5f47081990 /compiler/optimizing/instruction_simplifier.cc
parent1b19877e78f58ff3f676845380ec1280791d9500 (diff)
parente394622583774d7e3c32bea0c7ffc4777ee47e56 (diff)
Merge changes I506bc2a8,I7310de97,Ib3fd1110
* changes: ART: Do not define abstract HIR kinds. ART: Remove InstructionTypeEquals(). Store HIR type in HInstruction::packed_field_.
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
-rw-r--r--compiler/optimizing/instruction_simplifier.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc
index 0fe16725f3..ca84d421a7 100644
--- a/compiler/optimizing/instruction_simplifier.cc
+++ b/compiler/optimizing/instruction_simplifier.cc
@@ -2666,10 +2666,10 @@ bool InstructionSimplifierVisitor::TryHandleAssociativeAndCommutativeOperation(
HConstant* const2;
HBinaryOperation* y;
- if (instruction->InstructionTypeEquals(left) && right->IsConstant()) {
+ if (instruction->GetKind() == left->GetKind() && right->IsConstant()) {
const2 = right->AsConstant();
y = left->AsBinaryOperation();
- } else if (left->IsConstant() && instruction->InstructionTypeEquals(right)) {
+ } else if (left->IsConstant() && instruction->GetKind() == right->GetKind()) {
const2 = left->AsConstant();
y = right->AsBinaryOperation();
} else {