Index: src/compiler/arm/instruction-selector-arm.cc |
diff --git a/src/compiler/arm/instruction-selector-arm.cc b/src/compiler/arm/instruction-selector-arm.cc |
index 73e1aea9445ee89726fce2a821077de68e6915ae..bdfb7838b99244d70a7754dfbeca21ce5cae72f1 100644 |
--- a/src/compiler/arm/instruction-selector-arm.cc |
+++ b/src/compiler/arm/instruction-selector-arm.cc |
@@ -596,14 +596,14 @@ void InstructionSelector::VisitInt32Mul(Node* node) { |
Int32BinopMatcher m(node); |
if (m.right().HasValue() && m.right().Value() > 0) { |
int32_t value = m.right().Value(); |
- if (IsPowerOf2(value - 1)) { |
+ if (base::bits::IsPowerOfTwo32(value - 1)) { |
Emit(kArmAdd | AddressingModeField::encode(kMode_Operand2_R_LSL_I), |
g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.left().node()), |
g.TempImmediate(WhichPowerOf2(value - 1))); |
return; |
} |
- if (value < kMaxInt && IsPowerOf2(value + 1)) { |
+ if (value < kMaxInt && base::bits::IsPowerOfTwo32(value + 1)) { |
Emit(kArmRsb | AddressingModeField::encode(kMode_Operand2_R_LSL_I), |
g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.left().node()), |