summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/code_generator_arm.cc
diff options
context:
space:
mode:
authorMingyao Yang <mingyao@google.com>2015-02-25 11:28:05 -0800
committerMingyao Yang <mingyao@google.com>2015-03-03 13:24:03 -0800
commitdc5ac731f6369b53b42f1cee3404f3b3384cec34 (patch)
tree72a90f1da01185014551628078b98a79e5d5230e /compiler/optimizing/code_generator_arm.cc
parent0e5e728a4a4f042f157e1897cc8bbc2b0bb110b1 (diff)
downloadart-dc5ac731f6369b53b42f1cee3404f3b3384cec34.tar.gz
art-dc5ac731f6369b53b42f1cee3404f3b3384cec34.tar.bz2
art-dc5ac731f6369b53b42f1cee3404f3b3384cec34.zip
Opt compiler: enhance gvn for commutative ops.
Change-Id: I415b50d58b30cab4ec38077be22373eb9598ec40
Diffstat (limited to 'compiler/optimizing/code_generator_arm.cc')
-rw-r--r--compiler/optimizing/code_generator_arm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_arm.cc b/compiler/optimizing/code_generator_arm.cc
index cda5c1a99c..07cc41a8d5 100644
--- a/compiler/optimizing/code_generator_arm.cc
+++ b/compiler/optimizing/code_generator_arm.cc
@@ -988,7 +988,7 @@ void InstructionCodeGeneratorARM::VisitCondition(HCondition* comp) {
__ cmp(left, ShifterOperand(locations->InAt(1).AsRegister<Register>()));
} else {
DCHECK(locations->InAt(1).IsConstant());
- int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue();
+ int32_t value = CodeGenerator::GetInt32ValueOf(locations->InAt(1).GetConstant());
ShifterOperand operand;
if (GetAssembler()->ShifterOperandCanHold(R0, left, CMP, value, &operand)) {
__ cmp(left, operand);