| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index 464371534454320dccd669c2073e4f79642e1a03..3ab2cb21bdcfd5d25c35c359aac3d24f79b5ee64 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -2528,9 +2528,11 @@ void HConstant::Initialize(Representation r) {
|
|
|
| bool HConstant::EmitAtUses() {
|
| ASSERT(IsLinked());
|
| - if (block()->graph()->has_osr()) {
|
| - return block()->graph()->IsStandardConstant(this);
|
| + if (block()->graph()->has_osr() &&
|
| + block()->graph()->IsStandardConstant(this)) {
|
| + return true;
|
| }
|
| + if (UseCount() == 0) return true;
|
| if (IsCell()) return false;
|
| if (representation().IsDouble()) return false;
|
| return true;
|
|
|