| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index 206ab7e2accf5e496b6cd814eb1071c511cb21e7..4e817664f0fef5a102675d116629d4ca37584632 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -1371,7 +1371,6 @@ HValue* HUnaryMathOperation::Canonicalize() {
|
|
|
| if (op() == kMathFloor) {
|
| HValue* val = value();
|
| - if (val->IsChange()) val = HChange::cast(val)->value();
|
| if (val->IsDiv() && (val->UseCount() == 1)) {
|
| HDiv* hdiv = HDiv::cast(val);
|
| HValue* left = hdiv->left();
|
| @@ -1410,17 +1409,8 @@ HValue* HUnaryMathOperation::Canonicalize() {
|
| }
|
| HMathFloorOfDiv* instr =
|
| HMathFloorOfDiv::New(block()->zone(), context(), new_left, new_right);
|
| - // Replace this HMathFloor instruction by the new HMathFloorOfDiv.
|
| instr->InsertBefore(this);
|
| - ReplaceAllUsesWith(instr);
|
| - Kill();
|
| - // We know the division had no other uses than this HMathFloor. Delete it.
|
| - // Dead code elimination will deal with |left| and |right| if
|
| - // appropriate.
|
| - hdiv->DeleteAndReplaceWith(NULL);
|
| -
|
| - // Return NULL to remove this instruction from the graph.
|
| - return NULL;
|
| + return instr;
|
| }
|
| }
|
| return this;
|
|
|