Removed usesless test instruction.

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/19647019

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15847 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 72d2c92d
...@@ -3782,8 +3782,7 @@ void LCodeGen::EmitIntegerMathAbs(LMathAbs* instr) { ...@@ -3782,8 +3782,7 @@ void LCodeGen::EmitIntegerMathAbs(LMathAbs* instr) {
__ test(input_reg, Operand(input_reg)); __ test(input_reg, Operand(input_reg));
Label is_positive; Label is_positive;
__ j(not_sign, &is_positive); __ j(not_sign, &is_positive);
__ neg(input_reg); __ neg(input_reg); // Sets flags.
__ test(input_reg, Operand(input_reg));
DeoptimizeIf(negative, instr->environment()); DeoptimizeIf(negative, instr->environment());
__ bind(&is_positive); __ bind(&is_positive);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment