| Index: src/hydrogen-instructions.cc
|
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
|
| index 9f962023572b38d3b2f879933171eccb0f13c49d..519fb0ff8092d77421927715a4f732c1bb715cc4 100644
|
| --- a/src/hydrogen-instructions.cc
|
| +++ b/src/hydrogen-instructions.cc
|
| @@ -1441,7 +1441,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();
|
| @@ -1480,17 +1479,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;
|
|
|