| Index: src/x64/lithium-x64.h
|
| diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h
|
| index ccfb5b1dfb360db4ce9e5ef27c66019e64e5a22a..ad0b0d6c34d5b7874292c994833a7afc21a02de8 100644
|
| --- a/src/x64/lithium-x64.h
|
| +++ b/src/x64/lithium-x64.h
|
| @@ -1345,6 +1345,11 @@ class LAddI: public LTemplateInstruction<1, 2, 0> {
|
| LOperand* left() { return inputs_[0]; }
|
| LOperand* right() { return inputs_[1]; }
|
|
|
| + static bool UseLea(HAdd* add) {
|
| + return !add->CheckFlag(HValue::kCanOverflow) &&
|
| + add->BetterLeftOperand()->UseCount() > 1;
|
| + }
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
|
| DECLARE_HYDROGEN_ACCESSOR(Add)
|
| };
|
|
|